提交 2992f501 编写于 作者: X Xiaoyu Wang

enh: plan serialization optimize

上级 b9a2d325
...@@ -23,11 +23,15 @@ ...@@ -23,11 +23,15 @@
#define tlvForEach(pDecoder, pTlv, code) \ #define tlvForEach(pDecoder, pTlv, code) \
while (TSDB_CODE_SUCCESS == code && TSDB_CODE_SUCCESS == (code = tlvGetNextTlv(pDecoder, &pTlv)) && NULL != pTlv) while (TSDB_CODE_SUCCESS == code && TSDB_CODE_SUCCESS == (code = tlvGetNextTlv(pDecoder, &pTlv)) && NULL != pTlv)
#pragma pack(push, 1)
typedef struct STlv { typedef struct STlv {
int16_t type; int16_t type;
int32_t len; int32_t len;
char value[0]; char value[0];
} __attribute__((packed, aligned(1))) STlv; } STlv;
#pragma pack(pop)
typedef struct STlvEncoder { typedef struct STlvEncoder {
int32_t allocSize; int32_t allocSize;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册