[][src]Trait buffered_offset_reader::OffsetRead

pub trait OffsetRead {
    fn read_at(&self, buf: &mut [u8], offset: u64) -> Result<usize>;
}

Required methods

fn read_at(&self, buf: &mut [u8], offset: u64) -> Result<usize>

Loading content...

Implementations on Foreign Types

impl<'_> OffsetRead for &'_ [u8][src]

impl OffsetRead for File[src]

fn read_at(&self, buf: &mut [u8], offset: u64) -> Result<usize>[src]

Uses std::os::unix::fs::FileExt::read_at() (aka pread()) on unix and std::os::windows::fs::FileExt::seek_read() on windows.

Loading content...

Implementors

Loading content...