Trait hff_std::Chunk

source ·
pub trait Chunk {
    // Required methods
    fn read(&self, source: &mut dyn ReadSeek) -> Result<Vec<u8>>;
    fn read_exact(
        &self,
        source: &mut dyn ReadSeek,
        buffer: &mut [u8]
    ) -> Result<u64>;
}
Expand description

Extension to read metadata from a table.

Required Methods§

source

fn read(&self, source: &mut dyn ReadSeek) -> Result<Vec<u8>>

Read the chunk data from the table.

source

fn read_exact( &self, source: &mut dyn ReadSeek, buffer: &mut [u8] ) -> Result<u64>

Read the chunk data into the provided buffer.

Implementations on Foreign Types§

source§

impl<'a> Chunk for ChunkView<'a>

source§

fn read_exact( &self, source: &mut dyn ReadSeek, buffer: &mut [u8] ) -> Result<u64>

Read the chunk data into the provided buffer.

source§

fn read(&self, source: &mut dyn ReadSeek) -> Result<Vec<u8>>

Implementors§