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

Function pn_data_get_binary

c/src/core/codec.c:2074–2083  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2072}
2073
2074pn_bytes_t pn_data_get_binary(pn_data_t *data)
2075{
2076 pni_node_t *node = pni_data_current(data);
2077 if (node && node->atom.type == PN_BINARY) {
2078 return node->atom.u.as_bytes;
2079 } else {
2080 pn_bytes_t t = {0};
2081 return t;
2082 }
2083}
2084
2085pn_bytes_t pn_data_get_string(pn_data_t *data)
2086{

Callers 3

pn_data_vscanFunction · 0.70
pn_data_appendnFunction · 0.70
get_messageFunction · 0.50

Calls 1

pni_data_currentFunction · 0.85

Tested by

no test coverage detected