omni::structuredlog::clearJsonTree

Defined in omni/structuredlog/JsonTree.h

static inline void omni::structuredlog::clearJsonTree(JsonNode *node, Allocator *alloc)

Free any memory allocated to a JsonNode and clear it out to an empty node.

Parameters
  • node[inout] The node to clear out. This node must be {} or have had its contents set by createObject(), createObjectArray() or setNode().

  • alloc[in] The allocator used to allocate node.