Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
codec: expose Number of Bytes Read by the Decoder
This allows users know where in the stream they are, supporting consuming and truncating use-cases e.g. given a byte slice, decode a user from it, and return the remainder of the byte slice to other module for further processing. Fixes #241 Fixes #235
- Loading branch information