Skip to main content

FFFStringStorage

Trait FFFStringStorage 

Source
pub trait FFFStringStorage {
    // Required methods
    fn arena_for(&self, file: &FileItem) -> ArenaPtr;
    fn base_arena(&self) -> ArenaPtr;
    fn overflow_arena(&self) -> ArenaPtr;
}
Expand description

Different sources of the string storage used by FFF implements as a deduplicated 16-bytes alined heap can be stored in RAM or on disk

Required Methods§

Source

fn arena_for(&self, file: &FileItem) -> ArenaPtr

Resolve the arena for a FileItem (handles base vs overflow split).

Source

fn base_arena(&self) -> ArenaPtr

The base arena (scan-time paths).

Source

fn overflow_arena(&self) -> ArenaPtr

The overflow arena (paths added after the last full scan).

Implementors§