提交 b4b0db9a 编写于 作者: H Hongze Cheng

more code

上级 0090d022
......@@ -40,13 +40,11 @@ typedef void (*TArray2Cb)(void *);
#define TARRAY2_MIN_SIZE 16
#define TARRAY2_INITIALIZER \
{ 0, 0, NULL }
#define TARRAY2_SIZE(a) ((a)->size)
#define TARRAY2_CAPACITY(a) ((a)->capacity)
#define TARRAY2_DATA(a) ((a)->data)
#define TARRAY2_GET(a, i) ((a)->data[i])
#define TARRAY2_GET_PTR(a, i) (&((a)->data[i]))
#define TARRAY2_GET_PTR(a, i) ((a)->data + i)
#define TARRAY2_FIRST(a) ((a)->data[0])
#define TARRAY2_LAST(a) ((a)->data[(a)->size - 1])
......
......@@ -252,14 +252,14 @@ struct SSttFileWriter {
// file
STFile file;
// data
TARRAY2(SSttBlk) sttBlkArray;
TARRAY2(SDelBlk) delBlkArray;
TARRAY2(STbStatisBlk) statisBlkArray;
void *bloomFilter; // TODO
SFSttFooter footer;
SBlockData bData[1];
SDelBlock dData[1];
STbStatisBlock sData[1];
TSttBlkArray sttBlkArray;
TDelBlkArray delBlkArray;
TStatisBlkArray statisBlkArray;
void *bloomFilter; // TODO
SFSttFooter footer;
SBlockData bData[1];
SDelBlock dData[1];
STbStatisBlock sData[1];
// helper data
SSkmInfo skmTb;
SSkmInfo skmRow;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册