Serialize
接口定义
int Serialize(uint8_t *&dataPtr, size_t &dataLength) const;
接口用途
将检索器内容存储至长度为dataLength字节的起始地址为dataPtr的uint8数组内。
参数说明
参数名称 |
描述 |
数据类型 |
取值范围 |
---|---|---|---|
dataPtr |
存储检索器内容的数组的起始地址。 |
uint8_t *& |
限制为空指针。 |
dataLength |
存储检索器内容的数组的长度。 |
size_t & |
限制为0。 |
返回值
数据类型 |
说明 |
---|---|
int |
若参数超出取值范围时返回-1;调用BuildSearcher或Load/Deserialize/LoadGraph后调用该接口时返回-1;否则返回0。 |
父主题: C++