15f1456fac
- Add regex search and replace - Add chunk iterator + update line iterator. - Cleanup/formatting.
19 lines
342 B
C++
19 lines
342 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;
|
|
|
|
ChunkIterator(Shard *r, uint32_t offset = 0);
|
|
|
|
~ChunkIterator();
|
|
|
|
void seek(uint32_t offset);
|
|
bool next(const char **data, uint32_t *out_len);
|
|
};
|