LoadFromMemory
API Definition
int ScannInterface::LoadFromMemory(uint8_t*& dataPtr, size_t& dataLength);
Function
Restore the index instance from memory (KScaNN-specific addition).
Parameters
Parameter |
Description |
Data Type |
Value Range |
|---|---|---|---|
dataPtr |
Pointer to the memory start address of serialized data. |
uint8_t*& |
The value can only be a non-null pointer. |
dataLength |
Length of serialized data memory. |
size_t& |
The value can only be non-zero. |
Return Value
Data Type |
Description |
|---|---|
int |
If the execution is successful, 0 is returned. Otherwise, −1 is returned. |
Parent topic: C++ APIs