Rate This Document
Findability
Accuracy
Completeness
Readability

Deserialize

API Definition

int Deserialize(const uint8_t *dataPtr, const size_t &dataLength);

Function

Restore an index instance to be searched given the array dataPtr filled with the content of the searcher.and the array length dataLength.

Parameters

Parameter

Description

Data Type

Value Range

dataPtr

Start address of the array that stores the content of the searcher.

const uint8_t *

The value cannot be null.

dataLength

Length of the array that stores the content of the searcher.

const size_t &

Length of the array saved when the Serialize API is called.

Return Value

Data Type

Description

int

If the parameter value exceeds the value range, -1 is returned. Otherwise, 0 is returned.

The Serialize API applies for array memory internally. After calling this API, use delete [] to release the resources.