pub struct RBuffer<'a> { /* private fields */ }Expand description
Helper struct to parse data read in file
Provided by crate::Branch::get_basket as argument in lambda function.
Implementations
sourceimpl<'a> RBuffer<'a>
impl<'a> RBuffer<'a>
pub fn new(data: &[u8], offset: u32) -> RBuffer<'_>
pub fn len(&self) -> i64
pub fn is_empty(&self) -> bool
pub fn pos(&self) -> i64
pub fn set_pos(&mut self, pos: i64)
pub fn skip(&mut self, s: i64) -> Result<()>
pub fn rewind(&mut self, s: i64) -> Result<()>
pub fn read_array_u8(&mut self, arr: &mut [u8]) -> Result<()>
pub fn read_i8(&mut self) -> Result<i8>
pub fn read_bool(&mut self) -> Result<bool>
pub fn read_u16(&mut self) -> Result<u16>
pub fn read_i16(&mut self) -> Result<i16>
pub fn read_array_i16(&mut self, arr: &mut [i16]) -> Result<()>
pub fn read_i32(&mut self) -> Result<i32>
pub fn read_array_i32(&mut self, arr: &mut [i32]) -> Result<()>
pub fn read_u32(&mut self) -> Result<u32>
pub fn read_i64(&mut self) -> Result<i64>
pub fn read_array_i64(&mut self, arr: &mut [i64]) -> Result<()>
pub fn read_u64(&mut self) -> Result<u64>
pub fn read_f64(&mut self) -> Result<f64>
pub fn read_f32(&mut self) -> Result<f32>
pub fn read_object_into<T: UnmarshalerInto<Item = T>>(&mut self) -> Result<T>
pub fn read_string(&mut self) -> Result<&str>
pub fn read_cstring(&mut self, n: usize) -> Result<&'a str>
pub fn set_skip_header(&mut self, skip_header: Option<i32>)
pub fn skip_header(&self) -> Option<i32>
pub fn do_skip_header(&mut self) -> Result<()>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for RBuffer<'a>
impl<'a> Send for RBuffer<'a>
impl<'a> Sync for RBuffer<'a>
impl<'a> Unpin for RBuffer<'a>
impl<'a> UnwindSafe for RBuffer<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more