Skip to main content

Storage

Trait Storage 

Source
pub trait Storage: Send + Sync {
    // Required methods
    fn len(&self) -> u64;
    fn read_range(
        &self,
        offset: u64,
        len: usize,
    ) -> Result<StorageBuffer, Error>;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Expand description

Random-access, immutable byte storage for HDF5 parsing and reads.

Required Methods§

Source

fn len(&self) -> u64

Total length in bytes.

Source

fn read_range(&self, offset: u64, len: usize) -> Result<StorageBuffer, Error>

Read a byte range from offset..offset+len.

Provided Methods§

Source

fn is_empty(&self) -> bool

Returns true if the storage is empty.

Implementors§