pub struct ByteReader<'a> { /* private fields */ }Implementations§
Source§impl<'a> ByteReader<'a>
impl<'a> ByteReader<'a>
pub fn new(data: &'a [u8]) -> Self
pub fn u8(&mut self) -> u8
pub fn u16(&mut self) -> u16
pub fn u32(&mut self) -> u32
pub fn u64(&mut self) -> u64
pub fn i8(&mut self) -> i8
pub fn i16(&mut self) -> i16
pub fn i32(&mut self) -> i32
pub fn i64(&mut self) -> i64
pub fn bool(&mut self) -> bool
pub fn bits(&mut self) -> Vec<bool>
pub fn bytes(&mut self, count: usize) -> &'a [u8] ⓘ
Sourcepub fn peek_bytes(&self, count: usize) -> &'a [u8] ⓘ
pub fn peek_bytes(&self, count: usize) -> &'a [u8] ⓘ
Returns a slice of bytes from the current offset without advancing the offset.
pub fn read_until(&mut self, address: usize) -> Vec<u8> ⓘ
pub fn offset(&self) -> usize
pub fn seek(&mut self, offset: usize)
pub fn uleb128(&mut self) -> u64
pub fn string(&mut self, size: Option<usize>) -> String
pub fn uuid(&mut self) -> String
pub fn datetime(&mut self) -> String
pub fn f32(&mut self) -> f32
pub fn f64(&mut self) -> f64
pub fn slice_bytes(&self, start: usize, end: usize) -> Vec<u8> ⓘ
Auto Trait Implementations§
impl<'a> Freeze for ByteReader<'a>
impl<'a> RefUnwindSafe for ByteReader<'a>
impl<'a> Send for ByteReader<'a>
impl<'a> Sync for ByteReader<'a>
impl<'a> Unpin for ByteReader<'a>
impl<'a> UnsafeUnpin for ByteReader<'a>
impl<'a> UnwindSafe for ByteReader<'a>
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