Make append buffer contiguous and update iterators

This commit is contained in:
2026-08-06 19:39:59 +01:00
parent 5722731c6a
commit 189b9ab6ca
19 changed files with 463 additions and 506 deletions
+5 -5
View File
@@ -1,5 +1,4 @@
#include "pch.h"
#include "vase/iterators/chunk.h"
#include "vase/iterators/line.h"
#include "vase/vase.h"
@@ -9,11 +8,12 @@ int main(int argc, char *argv[]) {
Vase vase = Vase(argv[1], "/tmp");
Point p = {500, 1000};
vase.insert(&p, 'x');
Point p = {UINT64_MAX, UINT64_MAX};
vase.insert(&p, 'c');
printf("\n"
"%lu bytes\n"
printf("%s\n\n", vase.to_string().c_str());
printf("%lu bytes\n"
"%lu lines\n"
"\n",
vase.length(),