pub struct OleanReader<'a> { /* private fields */ }Expand description
Streaming binary reader for the OleanC format.
Implementations§
Source§impl<'a> OleanReader<'a>
impl<'a> OleanReader<'a>
Sourcepub fn read_header(&mut self) -> Result<OleanHeader, OleanError>
pub fn read_header(&mut self) -> Result<OleanHeader, OleanError>
Read and validate the OleanC file header.
Sourcepub fn read_string(&mut self) -> Result<String, OleanError>
pub fn read_string(&mut self) -> Result<String, OleanError>
Read a length-prefixed UTF-8 string.
Sourcepub fn read_u8(&mut self) -> Result<u8, OleanError>
pub fn read_u8(&mut self) -> Result<u8, OleanError>
Read a single byte.
Sourcepub fn read_u32(&mut self) -> Result<u32, OleanError>
pub fn read_u32(&mut self) -> Result<u32, OleanError>
Read a u32 in little-endian order.
Sourcepub fn read_u64(&mut self) -> Result<u64, OleanError>
pub fn read_u64(&mut self) -> Result<u64, OleanError>
Read a u64 in little-endian order.
Sourcepub fn read_i64(&mut self) -> Result<i64, OleanError>
pub fn read_i64(&mut self) -> Result<i64, OleanError>
Read an i64 in little-endian order.
Sourcepub fn read_bool(&mut self) -> Result<bool, OleanError>
pub fn read_bool(&mut self) -> Result<bool, OleanError>
Read a bool from a single byte.
Auto Trait Implementations§
impl<'a> Freeze for OleanReader<'a>
impl<'a> RefUnwindSafe for OleanReader<'a>
impl<'a> Send for OleanReader<'a>
impl<'a> Sync for OleanReader<'a>
impl<'a> Unpin for OleanReader<'a>
impl<'a> UnsafeUnpin for OleanReader<'a>
impl<'a> UnwindSafe for OleanReader<'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