Trait olio::fs::PosRead
[−]
[src]
pub trait PosRead { fn pread(&self, buf: &mut [u8], offset: u64) -> Result<usize>; }
Trait offering a uniform pread
for positioned reads, with platform
dependent side-effects.
Required Methods
fn pread(&self, buf: &mut [u8], offset: u64) -> Result<usize>
Read some bytes, starting at the specified offset, into the specified buffer and return the number of bytes read. The offset is from the start of the underlying file or file range. The position of the underlying file pointer (aka cursor) is not used. It is platform dependent whether the underlying file pointer is modified by this operation.