Struct bitstream_io::read::ByteReader[][src]

pub struct ByteReader<R: Read, E: Endianness> { /* fields omitted */ }
Expand description

For reading aligned bytes from a stream of bytes in a given endianness.

This only reads aligned values and maintains no internal state.

Implementations

Wraps a ByteReader around something that implements Read

Wraps a ByteReader around something that implements Read with the given endianness.

Unwraps internal reader and disposes of ByteReader.

Provides mutable reference to internal reader

Converts ByteReader to BitReader in the same endianness.

Provides temporary BitReader in the same endianness.

Warning

Any unread bits left over when BitReader is dropped are lost.

Trait Implementations

Reads whole numeric value from stream Read more

Completely fills the given buffer with whole bytes. Read more

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

Performs the conversion.

Performs the conversion.

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.