FileByteSource

Trait FileByteSource 

Source
pub trait FileByteSource: Send + Sync {
    // Required method
    fn read_bytes_into(
        &self,
        buffer: &mut Vec<u8>,
        offset: u64,
        size: usize,
    ) -> FileAndPathHelperResult<()>;
}

Required Methods§

Source

fn read_bytes_into( &self, buffer: &mut Vec<u8>, offset: u64, size: usize, ) -> FileAndPathHelperResult<()>

Read size bytes at offset offset and append them to buffer. If successful, buffer must have had its len increased exactly by size, otherwise the caller may panic.

Implementors§