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

Function pn_data_get_string

c/src/core/codec.c:2085–2094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2083}
2084
2085pn_bytes_t pn_data_get_string(pn_data_t *data)
2086{
2087 pni_node_t *node = pni_data_current(data);
2088 if (node && node->atom.type == PN_STRING) {
2089 return node->atom.u.as_bytes;
2090 } else {
2091 pn_bytes_t t = {0};
2092 return t;
2093 }
2094}
2095
2096pn_bytes_t pn_data_get_symbol(pn_data_t *data)
2097{

Callers 4

pn_data_vscanFunction · 0.70
pn_data_appendnFunction · 0.70
decoder.cppFile · 0.50

Calls 1

pni_data_currentFunction · 0.85

Tested by

no test coverage detected