1
0
mirror of https://github.com/fumiama/fumidb.git synced 2026-06-08 03:53:48 +08:00

add some funcs of table

This commit is contained in:
源文雨
2022-05-03 21:14:30 +08:00
parent 19e09bc630
commit d17f36b255
7 changed files with 174 additions and 16 deletions

View File

@@ -21,6 +21,9 @@
typedef uint8_t type_t;
typedef uint64_t key_t;
// 获得本类型 index 相对于 buffer 头的偏移
int type_offset(type_t t);
// 为类型 type 创建索引
// 返回:索引头节点的指针 index
void* create_index(int fd, type_t t, void* buf);