replace ec3_reader and ec3_writer with a unified image and tag io interface

This commit is contained in:
2025-02-23 20:52:59 +00:00
parent 2e4ee5c1b6
commit 9aeae388a4
32 changed files with 3458 additions and 264 deletions

View File

@@ -3,10 +3,19 @@
#include <blue/core/btree.h>
struct string_table_entry {
b_btree_node e_hash_node;
b_btree_node e_offset_node;
size_t e_hash;
size_t e_offset;
char e_str[];
};
struct string_table {
b_btree s_hash_tree;
b_btree s_offset_tree;
size_t s_next_offset;
size_t s_nr_entries;
};
extern void string_table_init(struct string_table *out);