提交 26a1bb43 编写于 作者: X Xiaoyu Wang

enh: add binary serialization method to node structure

上级 82fcd221
...@@ -130,6 +130,9 @@ static int32_t tlvEncodeBool(STlvEncoder* pEncoder, int16_t type, bool value) { ...@@ -130,6 +130,9 @@ static int32_t tlvEncodeBool(STlvEncoder* pEncoder, int16_t type, bool value) {
} }
static int32_t tlvEncodeCStr(STlvEncoder* pEncoder, int16_t type, const char* pValue) { static int32_t tlvEncodeCStr(STlvEncoder* pEncoder, int16_t type, const char* pValue) {
if (NULL == pValue) {
return TSDB_CODE_SUCCESS;
}
return tlvEncodeImpl(pEncoder, type, pValue, strlen(pValue)); return tlvEncodeImpl(pEncoder, type, pValue, strlen(pValue));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册