Files
bed/include/vase/iterators/line.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
362 B
C++

#pragma once
#include "../shard.h"
#include "chunk.h"
#include "pch.h"
struct LineIterator {
ChunkIterator it;
const char *cursor = nullptr;
bool eof = false;
uint32_t remaining = 0;
uint32_t line_offset = 0;
LineIterator(Shard *r, uint32_t start_line);
~LineIterator() = default;
bool next(std::string &line);
uint32_t byte_offset();
};