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

Class DenseVectorList

src/structures/dense_vector_list.rs:10–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8const HEADER_SIZE: usize = SIZE_OF_U64;
9
10pub struct DenseVectorList {
11 mmap: MmapMut,
12 used_space: usize, // Track the used space within the mmap beyond the header
13 pub path: PathBuf,
14}
15
16impl DenseVectorList {
17 pub fn new(path: PathBuf, elements: u64) -> io::Result<Self> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected