LoadFromMemory
接口定义
int ScannInterface::LoadFromMemory(uint8_t*& dataPtr, size_t& dataLength);
接口用途
从内存中还原索引实例(相比开源算法新增方法)。
参数说明
参数名称 |
描述 |
数据类型 |
取值范围 |
---|---|---|---|
dataPtr |
指向存储序列化数据的内存的起始地址。 |
uint8_t*& |
限制为非空指针。 |
dataLength |
存储序列化数据的内存的长度。 |
size_t& |
限制为非0。 |
返回值
数据类型 |
说明 |
---|---|
int |
执行成功返回0,否则返回-1。 |
父主题: C++接口