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

Function pni_data_intern

c/src/core/codec.c:453–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453static ssize_t pni_data_intern(pn_data_t *data, const char *start, size_t size)
454{
455 size_t offset = pn_buffer_size(data->buf);
456 int err = pn_buffer_append(data->buf, start, size);
457 if (err) return err;
458 err = pn_buffer_append(data->buf, "\0", 1);
459 if (err) return err;
460 return offset;
461}
462
463static pn_bytes_t *pni_data_bytes(pn_data_t *data, pni_node_t *node)
464{

Callers 1

pni_data_intern_nodeFunction · 0.85

Calls 2

pn_buffer_sizeFunction · 0.85
pn_buffer_appendFunction · 0.85

Tested by

no test coverage detected