pub struct StreamReader<R> { /* private fields */ }Implementations§
Source§impl StreamReader<BufReader<File>>
impl StreamReader<BufReader<File>>
Source§impl<R: BufRead + Seek> StreamReader<R>
impl<R: BufRead + Seek> StreamReader<R>
pub fn new(reader: R) -> StreamReader<R>
Trait Implementations§
Source§impl<R: BufRead + Seek> BinaryReader for StreamReader<R>
impl<R: BufRead + Seek> BinaryReader for StreamReader<R>
fn set_endian(&mut self, endian: Endian)
fn endian(&self) -> Endian
fn read_byte(&mut self) -> Result<u8, Error>
fn read_u8(&mut self) -> Result<u8, Error>
fn read_i8(&mut self) -> Result<i8, Error>
fn read_exact(&mut self, array: &mut [u8]) -> Result<(), Error>
fn read_bytes_as_vec(&mut self, len: usize) -> Result<Vec<u8>, Error>
Source§fn read_bytes_no_move(&mut self, len: usize) -> Result<Vec<u8>, Error>
fn read_bytes_no_move(&mut self, len: usize) -> Result<Vec<u8>, Error>
read_bytes_no_move does not move offset after read_bytes. Read more
fn read_u16(&mut self) -> Result<u16, Error>
fn read_u32(&mut self) -> Result<u32, Error>
fn read_u64(&mut self) -> Result<u64, Error>
fn read_u128(&mut self) -> Result<u128, Error>
fn read_i16(&mut self) -> Result<i16, Error>
fn read_i32(&mut self) -> Result<i32, Error>
fn read_i64(&mut self) -> Result<i64, Error>
fn read_i128(&mut self) -> Result<i128, Error>
fn read_f32(&mut self) -> Result<f32, Error>
fn read_f64(&mut self) -> Result<f64, Error>
fn read_u16_be(&mut self) -> Result<u16, Error>
fn read_u32_be(&mut self) -> Result<u32, Error>
fn read_u64_be(&mut self) -> Result<u64, Error>
fn read_u128_be(&mut self) -> Result<u128, Error>
fn read_i16_be(&mut self) -> Result<i16, Error>
fn read_i32_be(&mut self) -> Result<i32, Error>
fn read_i64_be(&mut self) -> Result<i64, Error>
fn read_i128_be(&mut self) -> Result<i128, Error>
fn read_f32_be(&mut self) -> Result<f32, Error>
fn read_f64_be(&mut self) -> Result<f64, Error>
fn read_u16_le(&mut self) -> Result<u16, Error>
fn read_u32_le(&mut self) -> Result<u32, Error>
fn read_u64_le(&mut self) -> Result<u64, Error>
fn read_u128_le(&mut self) -> Result<u128, Error>
fn read_i16_le(&mut self) -> Result<i16, Error>
fn read_i32_le(&mut self) -> Result<i32, Error>
fn read_i64_le(&mut self) -> Result<i64, Error>
fn read_i128_le(&mut self) -> Result<i128, Error>
fn read_f32_le(&mut self) -> Result<f32, Error>
fn read_f64_le(&mut self) -> Result<f64, Error>
fn offset(&mut self) -> Result<u64, Error>
fn seek(&mut self, seek: SeekFrom) -> Result<u64, Error>
Source§fn read_bytes(&mut self, array: &mut [u8]) -> Result<(), Error>
fn read_bytes(&mut self, array: &mut [u8]) -> Result<(), Error>
👎Deprecated since 0.0.10:
Use new function read_exact() instead
Source§fn read_ascii_string(&mut self, size: usize) -> Result<String, Error>
fn read_ascii_string(&mut self, size: usize) -> Result<String, Error>
read_ascii_string for C like ascii string.This function finishes find end marker 0x00. Read more
Source§fn read_utf16_string(&mut self, size: usize) -> Result<String, Error>
fn read_utf16_string(&mut self, size: usize) -> Result<String, Error>
0.0.11
read_utf16_string for utf16 string. use endien
“size” refers to the number of bytes.
fn read_utf16be_string(&mut self, size: usize) -> Result<String, Error>
fn read_utf16le_string(&mut self, size: usize) -> Result<String, Error>
fn read_utf8_string(&mut self, size: usize) -> Result<String, Error>
Source§impl<R: Clone> Clone for StreamReader<R>
impl<R: Clone> Clone for StreamReader<R>
Source§fn clone(&self) -> StreamReader<R>
fn clone(&self) -> StreamReader<R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R: Debug> Debug for StreamReader<R>
impl<R: Debug> Debug for StreamReader<R>
impl<R: Copy> Copy for StreamReader<R>
Auto Trait Implementations§
impl<R> Freeze for StreamReader<R>where
R: Freeze,
impl<R> RefUnwindSafe for StreamReader<R>where
R: RefUnwindSafe,
impl<R> Send for StreamReader<R>where
R: Send,
impl<R> Sync for StreamReader<R>where
R: Sync,
impl<R> Unpin for StreamReader<R>where
R: Unpin,
impl<R> UnsafeUnpin for StreamReader<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for StreamReader<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