LoadFromMem
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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 |
Start position of the memory 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. |
Constraints
Only AIR files can be read.
Parent topic: Graph