Type Alias BytesCursor

Source
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

Source§

fn extract_remaining(&mut self) -> Bytes

Extracts the remaining bytes from the cursor. Read more
Source§

fn extract_bytes(&mut self, size: usize) -> Result<Bytes>

Extracts bytes from the cursor. Read more