From 0196070fe0a2ff4eeea96e5ee6cc0dc89451317d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sun, 1 May 2022 23:33:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=AD=A3README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/dbfile.md | 6 +++--- api/table.md | 2 -- api/types.md | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/api/dbfile.md b/api/dbfile.md index 143aeaa..788e35b 100644 --- a/api/dbfile.md +++ b/api/dbfile.md @@ -13,15 +13,15 @@ ├───────────────────┴───────────────────┤ │ possible other header data │ ├───────────────────────────────────────┤ -│ ...... ...... ...... │ +│ possible other data (such as index) │ ├───────────────────────────────────────┤ -│ some possible padding to fit 4096Byte │ +│ some possible padding to fit 4k │ ├───────────────────┬───────────────────┤ │ ptr of next table │ first table head │ ├───────────────────┴───────────────────┤ │ ...... ...... ...... │ ├───────────────────────────────────────┤ -│ some possible padding to fit 4096Byte │ +│ some possible padding to fit 4k │ ├───────────────────────────────────────┤ │ data blocks ... │ └───────────────────────────────────────┘ diff --git a/api/table.md b/api/table.md index 9d5eea4..35259fc 100644 --- a/api/table.md +++ b/api/table.md @@ -19,8 +19,6 @@ ├───────────────────────────────────────────────────────────────────────────────────────┤ │ index pointer of column No.N ( if it's zero, there is no index for this column ) │ ├───────────────────────────────────────────────────────────────────────────────────────┤ -│ index pointer of first deleted block ( if it's zero, there is no deleted block ) │ -├───────────────────────────────────────────────────────────────────────────────────────┤ │ index pointer of first foreign key ( if available ) │ ├───────────────────────────────────────────────────────────────────────────────────────┤ │ index pointer of second foreign key ( if available ) │ diff --git a/api/types.md b/api/types.md index 3246cf8..3156648 100644 --- a/api/types.md +++ b/api/types.md @@ -19,14 +19,14 @@ ### 类型列表 | 类型代号 | 类型 | 存储方式 | | --- | --- | --- | -| 6 | string | 下一个哈希相同的数据项的指针+该长度的数据(字节数组) | +| 6 | string | 下一个哈希相同的数据项的指针+uint32长度+该长度的数据(字节数组) | ## 二进制数据块 > 二进制数据块为定长(不超过uint64)的不参与索引的字节数组。 ### 类型列表 | 类型代号 | 类型 | 存储方式 | | --- | --- | --- | -| 7 | binary | 直接存储数据(字节数组) | +| 7 | binary | uint64长度+直接存储的数据(字节数组) | ## 类型修饰符 > 类型修饰符占据类型代号的高2位,通过或运算与基础代号结合