enh: add binary serialization method to node structure

This commit is contained in:
Xiaoyu Wang 2022-09-13 16:53:26 +08:00
parent 82fcd22107
commit 26a1bb437c
1 changed files with 3 additions and 0 deletions

View File

@ -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) {
if (NULL == pValue) {
return TSDB_CODE_SUCCESS;
}
return tlvEncodeImpl(pEncoder, type, pValue, strlen(pValue));
}