Struct binary_reader::BinaryReader [−][src]
pub struct BinaryReader {
pub data: Vec<u8>,
pub pos: usize,
pub length: usize,
pub endian: Endian,
}
Expand description
Binary reader.
Fields
data: Vec<u8>
The buffer data.
pos: usize
The current position.
length: usize
The length of the buffer.
endian: Endian
The endian of the buffer.
Implementations
Initialize BinaryReader from std::fs::File
.
Set endian for read method.
Read provided length size bytes.
Similar to BinaryReader::read
but this returns std::io::Result
instead of Option
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BinaryReader
impl Send for BinaryReader
impl Sync for BinaryReader
impl Unpin for BinaryReader
impl UnwindSafe for BinaryReader
Blanket Implementations
Mutably borrows from an owned value. Read more