vecs: part 2

This commit is contained in:
nym21
2025-07-22 13:19:19 +02:00
parent 5347523921
commit 73ebcdf0d6
6 changed files with 365 additions and 122 deletions

View File

@@ -6,7 +6,7 @@ use brk_vecs::{File, PAGE_SIZE};
fn main() -> Result<()> {
let file = File::open(Path::new("vecs"))?;
file.grow_if_needed(PAGE_SIZE * 1_000_000)?;
file.set_min_len(PAGE_SIZE * 1_000_000)?;
Ok(())
}