Cleanup namespace and api.

This commit is contained in:
2026-08-04 23:41:31 +01:00
parent 1f57c40eef
commit 5722731c6a
8 changed files with 63 additions and 50 deletions
+2
View File
@@ -13,6 +13,8 @@ AppendBuffer::~AppendBuffer() {
uint64_t AppendBuffer::append(char c) {
if (t_offset == APPEND_CHUNK_SIZE) {
t_current = (TChunk *)malloc(sizeof(TChunk));
if (!t_current)
throw std::runtime_error("malloc failed");
buf.push_back(t_current);
t_offset = 0;
}