我要评分
获取效率
正确性
完整性
易理解

Load

API Definition

int Load(const char *path);

Function

Loads a searcher from a specified path.

Parameters

Parameter

Data Type

Description

Value Range

path

const char *

Path for loading the searcher.

The length must be less than 199 characters.

Return Value

Data Type

Description

int

If the parameter value exceeds the value range or an I/O problem such as incorrect read path occurs, -1 is returned. In other cases, 0 is returned.