1
0
mirror of https://github.com/fumiama/fumidb.git synced 2026-06-10 21:24:12 +08:00

add types

This commit is contained in:
源文雨
2022-05-01 21:16:17 +08:00
parent eda10fba91
commit 67b9176615
17 changed files with 310 additions and 26 deletions

View File

@@ -7,9 +7,9 @@
### 类型列表
| 类型代号 | 类型 | 存储方式 |
| --- | --- | --- |
| 0 | int8 | 直接存储 |
| 1 | int16 | 直接存储 |
| 2 | int32 | 直接存储 |
| 0 | int8 | 下一个哈希相同的数据项的指针(当值可重复时)+int8 |
| 1 | int16 | 下一个哈希相同的数据项的指针(当值可重复时)+int16 |
| 2 | int32 | 直接存储 |
| 3 | int64 | 直接存储 |
| 4 | float | 直接存储 |
| 5 | double | 直接存储 |
@@ -19,7 +19,7 @@
### 类型列表
| 类型代号 | 类型 | 存储方式 |
| --- | --- | --- |
| 6 | string | 下一个哈希相同的数据项的指针(uint64)+该长度的数据(字节数组) |
| 6 | string | 下一个哈希相同的数据项的指针+该长度的数据(字节数组) |
## 二进制数据块
> 二进制数据块为定长不超过uint64的不参与索引的字节数组。