pub struct BinaryReaderVE<R> {
pub inner: R,
pub endian: Endian,
}
Fields§
§inner: R
§endian: Endian
Implementations§
Trait Implementations§
Source§impl<R: Read> BinaryRead for BinaryReaderVE<R>
impl<R: Read> BinaryRead for BinaryReaderVE<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 BinaryReaderVE<R>
impl<R: Seek> Seek for BinaryReaderVE<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
1.55.0 · Source§fn rewind(&mut self) -> Result<(), Error>
fn rewind(&mut self) -> Result<(), Error>
Rewind to the beginning of a stream. Read more
Auto Trait Implementations§
impl<R> Freeze for BinaryReaderVE<R>where
R: Freeze,
impl<R> RefUnwindSafe for BinaryReaderVE<R>where
R: RefUnwindSafe,
impl<R> Send for BinaryReaderVE<R>where
R: Send,
impl<R> Sync for BinaryReaderVE<R>where
R: Sync,
impl<R> Unpin for BinaryReaderVE<R>where
R: Unpin,
impl<R> UnwindSafe for BinaryReaderVE<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more