pub struct EndianCursor<B: ByteOrder, T: AsRef<[u8]>> { /* private fields */ }
Implementations§
Source§impl<B: ByteOrder, T: AsRef<[u8]>> EndianCursor<B, T>
impl<B: ByteOrder, T: AsRef<[u8]>> EndianCursor<B, T>
pub fn new(inner: T) -> Self
pub fn read_u8(&mut self) -> Result<u8>
pub fn read_i8(&mut self) -> Result<i8>
pub fn read_u16(&mut self) -> Result<u16>
pub fn read_i16(&mut self) -> Result<i16>
pub fn read_u24(&mut self) -> Result<u32>
pub fn read_i24(&mut self) -> Result<i32>
pub fn read_u32(&mut self) -> Result<u32>
pub fn read_i32(&mut self) -> Result<i32>
pub fn read_u48(&mut self) -> Result<u64>
pub fn read_i48(&mut self) -> Result<i64>
pub fn read_u64(&mut self) -> Result<u64>
pub fn read_i64(&mut self) -> Result<i64>
pub fn read_u128(&mut self) -> Result<u128>
pub fn read_i128(&mut self) -> Result<i128>
pub fn read_uint(&mut self, nbytes: usize) -> Result<u64>
pub fn read_int(&mut self, nbytes: usize) -> Result<i64>
pub fn read_uint128(&mut self, nbytes: usize) -> Result<u128>
pub fn read_int128(&mut self, nbytes: usize) -> Result<i128>
pub fn read_f32(&mut self) -> Result<f32>
pub fn read_f64(&mut self) -> Result<f64>
Auto Trait Implementations§
impl<B, T> Freeze for EndianCursor<B, T>where
T: Freeze,
impl<B, T> RefUnwindSafe for EndianCursor<B, T>where
T: RefUnwindSafe,
B: RefUnwindSafe,
impl<B, T> Send for EndianCursor<B, T>
impl<B, T> Sync for EndianCursor<B, T>
impl<B, T> Unpin for EndianCursor<B, T>
impl<B, T> UnwindSafe for EndianCursor<B, T>where
T: UnwindSafe,
B: 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