Files
bed/include/vase/iterators/chunk.h
T
syedm 51e193d28b Major changes to api and structure.
- Remove newline caching
- limit petal sizes
- make public facing api use points only
- fix iterators (chunk & line)
2026-08-02 11:07:04 +01:00

22 lines
415 B
C++

#pragma once
#include "../shard.h"
#include "pch.h"
struct ChunkIterator {
Shard *root = nullptr;
std::vector<Shard *> stack;
Petal *petal = nullptr;
uint32_t petal_offset = 0;
uint32_t global_offset;
ChunkIterator(Shard *r);
~ChunkIterator();
void seek_offset(uint32_t offset);
void seek_line(uint32_t offset);
bool next(const char **data, uint32_t *out_len);
uint32_t byte_offset();
};