Function regorust::regoNodeJSON
source ยท pub unsafe extern "C" fn regoNodeJSON(
node: *mut regoNode,
buffer: *mut c_char,
size: regoSize,
) -> regoEnum
Expand description
Populate a buffer with the JSON representation of the node.
The buffer must be large enough to hold the value. The size of the buffer can be determined by calling regoNodeJSONSize.
@param node The node. @param buffer The buffer to populate. @param size The size of the buffer. @return REGO_OK if successful, REGO_ERROR_BUFFER_TOO_SMALL otherwise.