namespace vase.

This commit is contained in:
2026-08-06 20:36:14 +01:00
parent 0720a254a3
commit 04a27b30aa
18 changed files with 39 additions and 11 deletions
+2
View File
@@ -3,7 +3,9 @@
#include "../shard.h"
#include "pch.h"
namespace crib::internal::vase {
enum struct Direction : uint8_t {
Forward,
Backward
};
}
+2
View File
@@ -4,6 +4,7 @@
#include "pch.h"
#include "petal.h"
namespace crib::internal::vase {
struct LineIterator {
PetalIterator it;
const char *chunk;
@@ -18,3 +19,4 @@ struct LineIterator {
bool next(std::string *line);
uint64_t byte_offset();
};
} // namespace crib::internal::vase
+2
View File
@@ -4,6 +4,7 @@
#include "iter.h"
#include "pch.h"
namespace crib::internal::vase {
struct PetalIterator {
Direction dir;
Shard *root = nullptr;
@@ -25,3 +26,4 @@ struct PetalIterator {
private:
Petal *_next(uint64_t *offset);
};
} // namespace crib::internal::vase