MCPcopy Create free account
hub / github.com/carsonpo/haystackdb / StorageManager

Class StorageManager

src/structures/mmap_tree/storage.rs:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11use std::fmt::Debug;
12
13pub struct StorageManager<K, V> {
14 pub mmap: MmapMut,
15 pub used_space: usize,
16 path: PathBuf,
17 phantom: std::marker::PhantomData<(K, V)>,
18 locks: LockService,
19}
20
21pub const SIZE_OF_USIZE: usize = std::mem::size_of::<usize>();
22pub const HEADER_SIZE: usize = SIZE_OF_USIZE * 2; // Used space + root offset

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected