LoadFromMemory
API Definition
int ScannInterface::LoadFromMemory(uint8_t*& dataPtr, size_t& Length);
Function
Restore the index instance from memory (KScaNN-specific API).
Parameters
Parameter |
Data Type |
Description |
Value Range |
|---|---|---|---|
dataPtr |
uint8_t*& |
Pointer to the memory start address of serialized data. |
The value can only be a non-null pointer. |
Length |
size_t& |
Length of serialized data memory. |
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