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

Function pn_buffer_bytes

c/src/core/buffer.c:244–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244pn_bytes_t pn_buffer_bytes(pn_buffer_t *buf)
245{
246 if (!buf) {
247 return (pn_bytes_t){0, NULL};
248 }
249 pn_buffer_defrag(buf);
250 return (pn_bytes_t){.size=buf->size, .start=buf->bytes};
251}
252
253pn_rwbytes_t pn_buffer_memory(pn_buffer_t *buf)
254{

Callers 7

pn_write_frameFunction · 0.85
pni_pump_outFunction · 0.85
pn_messenger_getFunction · 0.85
app_inbytes_addFunction · 0.85
app_inbytes_progressFunction · 0.85

Calls 1

pn_buffer_defragFunction · 0.85

Tested by

no test coverage detected