MCPcopy Create free account
hub / github.com/apache/qpid-proton / pn_is_in_array

Function pn_is_in_array

c/src/core/encoder.c:227–230  ·  view source on GitHub ↗

True if node is an element of an array - not the descriptor. */

Source from the content-addressed store, hash-verified

225
226/* True if node is an element of an array - not the descriptor. */
227static bool pn_is_in_array(pn_data_t *data, pni_node_t *parent, pni_node_t *node) {
228 return (parent && parent->atom.type == PN_ARRAY) /* In array */
229 && !(parent->described && !node->prev); /* Not the descriptor */
230}
231
232/** True if node is the first element of an array, not the descriptor.
233 *@pre pn_is_in_array(data, parent, node)

Callers 2

pni_encoder_enterFunction · 0.85
pni_encoder_exitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected