LoadFromMem

Description

Reads the serialized graph from the memory.

Prototype

graphStatus LoadFromMem(const GraphBuffer &graph_buffer);
graphStatus LoadFromMem(const uint8_t *data, const size_t len);

Parameters

Parameter

Input/Output

Description

graph_buffer

Input

Buffer of the graph to be read.

data

Input

Memory start position of the graph to be read.

len

Input

Memory length of the graph to be read.

Returns

Parameter

Type

Description

-

graphStatus

GRAPH_SUCCESS(0) on success;

else, failure.

Exception Handling

None

Restrictions

None