Skip to content

Commit

Permalink
Make SourceObject return number of bytes decoded
Browse files Browse the repository at this point in the history
This is in sync with SourceBlock(sbn).
  • Loading branch information
Eugene Kim committed Nov 20, 2018
1 parent 7d97282 commit ff36db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/raptorq/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ type Decoder interface {
// SourceObject copies the source object into the given buffer. buf should
// contain enough space to store the entire source object (use
// TransferLength() to get the required size).
SourceObject(buf []byte) error
SourceObject(buf []byte) (n int, err error)

// Free, on supported implementations, will free memory used for generating
// encoding symbols for the given source block. Once a source block has
Expand Down

0 comments on commit ff36db6

Please sign in to comment.