cap_primitives::fs

Trait FileExt

Source
pub trait FileExt {
    // Required methods
    fn seek_read(&self, buf: &mut [u8], offset: u64) -> Result<usize>;
    fn seek_write(&self, buf: &[u8], offset: u64) -> Result<usize>;
}
Expand description

Windows-specific extensions to [fs::File].

Required Methods§

Source

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

Seeks to a given position and reads a number of bytes.

Source

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

Seeks to a given position and writes a number of bytes.

Implementors§