pub trait HostFileRead {
// Required methods
fn remaining_len(&mut self) -> Result<u64, IoError>;
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), IoError>;
}Expand description
Host file reader.
Required Methods§
Sourcefn remaining_len(&mut self) -> Result<u64, IoError>
fn remaining_len(&mut self) -> Result<u64, IoError>
Returns the remaining number of bytes in the input stream.