pub struct SpillFileReader { /* private fields */ }Expand description
Reader for a spill file.
Provides buffered reading of spill file contents.
Implementations§
Source§impl SpillFileReader
impl SpillFileReader
Sourcepub fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>
pub fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>
Reads exactly buf.len() bytes from the file.
§Errors
Returns an error if not enough bytes are available.
Sourcepub fn read_u64_le(&mut self) -> Result<u64>
pub fn read_u64_le(&mut self) -> Result<u64>
Sourcepub fn read_i64_le(&mut self) -> Result<i64>
pub fn read_i64_le(&mut self) -> Result<i64>
Sourcepub fn read_f64_le(&mut self) -> Result<f64>
pub fn read_f64_le(&mut self) -> Result<f64>
Sourcepub fn read_bytes(&mut self) -> Result<Vec<u8>>
pub fn read_bytes(&mut self) -> Result<Vec<u8>>
Reads a length-prefixed byte slice.
Format: [length: u64][data: bytes]
§Errors
Returns an error if the read fails.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpillFileReader
impl RefUnwindSafe for SpillFileReader
impl Send for SpillFileReader
impl Sync for SpillFileReader
impl Unpin for SpillFileReader
impl UnwindSafe for SpillFileReader
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