rmlLoadGraphFromBuffer
Loads graph from a protobuf buffer.
rml_status rmlLoadGraphFromBuffer(  | 
size_t size,  | 
const void* buffer,  | 
|
rml_graph_format format,  | 
|
rml_graph* graph);  | 
API
Main
Parameters
Parameter  | 
Input/Output  | 
Description  | 
|---|---|---|
size  | 
input  | 
The buffer size.  | 
buffer  | 
input  | 
The buffer pointer.  | 
format  | 
input  | 
The buffer format.  | 
graph  | 
output  | 
A pointer to a resulting graph handle.  | 
Return and Status Codes
Returns a valid graph handle in case of success and status:
RML_OKif the operation is successfulRML_ERROR_BAD_MODELif the model contains an error
To get more details in case of failure, call rmlGetLastError().
The graph should be released with rmlReleaseGraph().