pub struct Reader<R: Read> {
pub little_endian: bool,
/* private fields */
}
Fields§
§little_endian: bool
Implementations§
Source§impl<R: Read> Reader<R>
impl<R: Read> Reader<R>
pub fn new(reader: R, little_endian: bool) -> Self
pub fn read_u8(&mut self) -> Result<u8, Error>
pub fn read_u8_into(&mut self, buffer: &mut [u8]) -> Result<(), Error>
pub fn read_u32(&mut self) -> Result<u32, Error>
pub fn read_utf(&mut self, len: usize) -> Result<String, Error>
pub fn read_utf_z(&mut self, len: usize) -> Result<String, Error>
pub fn read_ascii_n(&mut self) -> Result<String, Error>
Auto Trait Implementations§
impl<R> Freeze for Reader<R>where
R: Freeze,
impl<R> RefUnwindSafe for Reader<R>where
R: RefUnwindSafe,
impl<R> Send for Reader<R>where
R: Send,
impl<R> Sync for Reader<R>where
R: Sync,
impl<R> Unpin for Reader<R>where
R: Unpin,
impl<R> UnwindSafe for Reader<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