pub struct ByteReader { /* private fields */ }
Implementations§
Source§impl ByteReader
impl ByteReader
pub fn new_from(src: &[u8]) -> Self
pub fn capacity(&self) -> usize
pub fn readable(&self) -> usize
pub fn mark_read_index(&mut self) -> &mut Self
pub fn reset_read_index(&mut self)
pub fn get_bytes_of_write(&self, target: &mut [u8]) -> ByteBufResult<()>
pub fn get_bytes_of_length(&self, length: usize) -> ByteBufResult<Vec<u8>>
pub fn get_u8(&self) -> ByteBufResult<u8>
pub fn get_i8(&self) -> ByteBufResult<i8>
pub fn get_u16_be(&self) -> ByteBufResult<u16>
pub fn get_u16_le(&self) -> ByteBufResult<u16>
pub fn get_i16_be(&self) -> ByteBufResult<i16>
pub fn get_i16_le(&self) -> ByteBufResult<i16>
pub fn get_u32_be(&self) -> ByteBufResult<u32>
pub fn get_u32_le(&self) -> ByteBufResult<u32>
pub fn get_i32_be(&self) -> ByteBufResult<i32>
pub fn get_i32_le(&self) -> ByteBufResult<i32>
pub fn get_u64_be(&self) -> ByteBufResult<u64>
pub fn get_u64_le(&self) -> ByteBufResult<u64>
pub fn get_i64_be(&self) -> ByteBufResult<i64>
pub fn get_i64_le(&self) -> ByteBufResult<i64>
pub fn read_bytes_of_write(&mut self, target: &mut [u8]) -> ByteBufResult<()>
pub fn read_bytes_of_length(&mut self, length: usize) -> ByteBufResult<Vec<u8>>
pub fn read_u8(&mut self) -> ByteBufResult<u8>
pub fn read_i8(&mut self) -> ByteBufResult<i8>
pub fn read_u16_be(&mut self) -> ByteBufResult<u16>
pub fn read_u16_le(&mut self) -> ByteBufResult<u16>
pub fn read_i16_be(&mut self) -> ByteBufResult<i16>
pub fn read_i16_le(&mut self) -> ByteBufResult<i16>
pub fn read_u32_be(&mut self) -> ByteBufResult<u32>
pub fn read_u32_le(&mut self) -> ByteBufResult<u32>
pub fn read_i32_be(&mut self) -> ByteBufResult<i32>
pub fn read_i32_le(&mut self) -> ByteBufResult<i32>
pub fn read_u64_be(&mut self) -> ByteBufResult<u64>
pub fn read_u64_le(&mut self) -> ByteBufResult<u64>
pub fn read_i64_be(&mut self) -> ByteBufResult<i64>
pub fn read_i64_le(&mut self) -> ByteBufResult<i64>
Auto Trait Implementations§
impl Freeze for ByteReader
impl RefUnwindSafe for ByteReader
impl Send for ByteReader
impl Sync for ByteReader
impl Unpin for ByteReader
impl UnwindSafe for ByteReader
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