Struct binary_reader::BinaryReader [−][src]
pub struct BinaryReader {
pub data: Vec<u8>,
pub pos: usize,
pub length: usize,
pub endian: Endian,
}Fields
data: Vec<u8>pos: usizelength: usizeendian: EndianImplementations
Initialize BinaryReader from u8 Vector.
Initialize BinaryReader from std::fs::File.
Set endian for read method.
Read provided length size bytes.
Similar to read but this returns std::io::Result<&[u8]> instead of Option.