Struct blaze_pk::Reader

source ·
pub struct Reader<'a> { /* private fields */ }
Expand description

Structure for reading over a vec of bytes using a cursor.

Implementations

Creates a new reader for the provided buffer

Attempts to take a slice of the buffer after the cursor with the provided count number of bytes. Returns None if theres not enough bytes after the cursor

Takes a single bytes from the reader increasing the cursor by one.

Consumes every byte until the condition function fails

Step back a cursor position

Returns the number of bytes remaining after the cursor

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.