pub type BytesCursor = Cursor<Bytes>;
Expand description
A cursor for reading bytes.
This cursor is a io::Cursor
where the underlying type is a [Bytes
] object
which enables zero copy decoding.
Aliased Type§
struct BytesCursor { /* private fields */ }
Trait Implementations§
Source§impl BytesCursorExt for BytesCursor
impl BytesCursorExt for BytesCursor
Source§fn extract_remaining(&mut self) -> Bytes
fn extract_remaining(&mut self) -> Bytes
Extracts the remaining bytes from the cursor. Read more