LoadFromMem

Applicable Products

All processors

Header File/Library File

  • Header file: #include <graph/graph.h>
  • Library file: libgraph.so

Function Usage

Reads the serialized graph from the memory.

Prototype

1
2
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): success.

Other values: failure.

Restrictions

Only AIR files can be read.