Skip to main content

FsstBuffer

Trait FsstBuffer 

Source
pub trait FsstBuffer:
    Debug
    + Clone
    + Sealed {
    // Required methods
    fn get_fsst_buffer(&self) -> Result<Arc<RawFsstBuffer>, IoRange>;
    fn get_array_memory_size(&self) -> usize;
    fn uncompressed_bytes(&self) -> usize;
}
Expand description

Trait for FSST buffer - can be in memory or on disk

Required Methods§

Source

fn get_fsst_buffer(&self) -> Result<Arc<RawFsstBuffer>, IoRange>

Get the raw FSST buffer, loading from disk if necessary

Source

fn get_array_memory_size(&self) -> usize

Get the memory size of the FSST buffer

Source

fn uncompressed_bytes(&self) -> usize

Get the uncompressed bytes of the FSST buffer

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§