Struct urex_binary_io::BinaryReaderLE
source · pub struct BinaryReaderLE<R> {
pub inner: R,
}
Fields§
§inner: R
Implementations§
Trait Implementations§
source§impl<R: Read> BinaryRead for BinaryReaderLE<R>
impl<R: Read> BinaryRead for BinaryReaderLE<R>
source§fn read_u8_array(&mut self, len: Option<usize>) -> Result<Vec<u8>>
fn read_u8_array(&mut self, len: Option<usize>) -> Result<Vec<u8>>
Reads an array of
u8
s (1 byte(s) each). If len is none the reader will determine the length by reading it.source§fn read_i8_array(&mut self, len: Option<usize>) -> Result<Vec<i8>>
fn read_i8_array(&mut self, len: Option<usize>) -> Result<Vec<i8>>
Reads an array of
i8
s (1 byte(s) each). If len is none the reader will determine the length by reading it.source§fn read_array_len(&mut self) -> Result<usize>
fn read_array_len(&mut self) -> Result<usize>
Reads the length for an array.
source§fn read_u16_array(&mut self, len: Option<usize>) -> Result<Vec<u16>>
fn read_u16_array(&mut self, len: Option<usize>) -> Result<Vec<u16>>
Reads an array of
u16
s (2 byte(s) each). If len is none the reader will determine the length by reading it.source§fn read_u32_array(&mut self, len: Option<usize>) -> Result<Vec<u32>>
fn read_u32_array(&mut self, len: Option<usize>) -> Result<Vec<u32>>
Reads an array of
u32
s (4 byte(s) each). If len is none the reader will determine the length by reading it.source§fn read_u64_array(&mut self, len: Option<usize>) -> Result<Vec<u64>>
fn read_u64_array(&mut self, len: Option<usize>) -> Result<Vec<u64>>
Reads an array of
u64
s (8 byte(s) each). If len is none the reader will determine the length by reading it.source§fn read_i16_array(&mut self, len: Option<usize>) -> Result<Vec<i16>>
fn read_i16_array(&mut self, len: Option<usize>) -> Result<Vec<i16>>
Reads an array of
i16
s (2 byte(s) each). If len is none the reader will determine the length by reading it.source§fn read_i32_array(&mut self, len: Option<usize>) -> Result<Vec<i32>>
fn read_i32_array(&mut self, len: Option<usize>) -> Result<Vec<i32>>
Reads an array of
i32
s (4 byte(s) each). If len is none the reader will determine the length by reading it.source§fn read_i64_array(&mut self, len: Option<usize>) -> Result<Vec<i64>>
fn read_i64_array(&mut self, len: Option<usize>) -> Result<Vec<i64>>
Reads an array of
i64
s (8 byte(s) each). If len is none the reader will determine the length by reading it.source§fn read_f32_array(&mut self, len: Option<usize>) -> Result<Vec<f32>>
fn read_f32_array(&mut self, len: Option<usize>) -> Result<Vec<f32>>
Reads an array of
f32
s (4 byte(s) each). If len is none the reader will determine the length by reading it.source§fn read_f64_array(&mut self, len: Option<usize>) -> Result<Vec<f64>>
fn read_f64_array(&mut self, len: Option<usize>) -> Result<Vec<f64>>
Reads an array of
f64
s (8 byte(s) each). If len is none the reader will determine the length by reading it.source§fn read_bool_array(&mut self, len: Option<usize>) -> Result<Vec<bool>>
fn read_bool_array(&mut self, len: Option<usize>) -> Result<Vec<bool>>
Reads an array of
bool
s (1 byte(s) each). If len is none the reader will determine the length by reading it.source§fn read_char_array(&mut self, len: Option<usize>) -> Result<Vec<char>>
fn read_char_array(&mut self, len: Option<usize>) -> Result<Vec<char>>
Reads an array of
char
s (1 byte(s) each). If len is none the reader will determine the length by reading it.source§fn read_f16_array(&mut self, len: Option<usize>) -> Result<Vec<f32>>
fn read_f16_array(&mut self, len: Option<usize>) -> Result<Vec<f32>>
Reads an array of
f16
s (2 byte(s) each). If len is none the reader will determine the length by reading it.source§fn read_str(&mut self, len: Option<usize>) -> Result<String>
fn read_str(&mut self, len: Option<usize>) -> Result<String>
Reads a string. If len is none the reader will determine the length by reading it.
source§fn read_bytes(&mut self, len: Option<usize>) -> Result<Vec<u8>>
fn read_bytes(&mut self, len: Option<usize>) -> Result<Vec<u8>>
Reads bytes as
Vec<u8>
. If len is none the reader will determine the length by reading it.source§fn read_cstr_array(&mut self, len: Option<usize>) -> Result<Vec<String>>
fn read_cstr_array(&mut self, len: Option<usize>) -> Result<Vec<String>>
Reads an array of c-strings. If len is none the reader will determine the length by reading it.
source§impl<R: Seek> Seek for BinaryReaderLE<R>
impl<R: Seek> Seek for BinaryReaderLE<R>
source§fn seek(&mut self, pos: SeekFrom) -> Result<u64>
fn seek(&mut self, pos: SeekFrom) -> Result<u64>
Seek to an offset, in bytes, in a stream. Read more
source§fn stream_position(&mut self) -> Result<u64>
fn stream_position(&mut self) -> Result<u64>
Returns the current seek position from the start of the stream. Read more