pub struct BinaryReader<'a> { /* private fields */ }
Expand description

Read from a stream.

Implementations

Create a binary reader with the given endianness.

Read a length-prefixed String from the stream.

Read a character from the stream.

Read a bool from the stream.

Read a f32 from the stream.

Read a f64 from the stream.

Read an isize from the stream.

Read a usize from the stream.

Read a u64 from the stream.

Read an i64 from the stream.

Read a u32 from the stream.

Read an i32 from the stream.

Read a u16 from the stream.

Read an i16 from the stream.

Read a u8 from the stream.

Read an i8 from the stream.

Read bytes from the stream into a buffer.

Trait Implementations

Seek to a position.
Get the current position.
Get the length of the stream.

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.