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

Implements ByteReader trait for a slice of bytes.

Implementations

Creates a new slice reader from the specified slice.

Trait Implementations

Returns a single byte read from self. Read more
Returns a u16 value read from self in little-endian byte order. Read more
Returns a u32 value read from self in little-endian byte order. Read more
Returns a u64 value read from self in little-endian byte order. Read more
Returns a u128 value read from self in little-endian byte order. Read more
Returns a byte vector of the specified length read from self. Read more
Returns a byte array of length N reade from self.
Returns true if there are more bytes left to be read from self.

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.

Should always be Self
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.