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

Function rwbytes_ensure

c/tests/pn_test.cpp:77–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void rwbytes_ensure(pn_rwbytes_t *buf, size_t size) {
78 if (buf->start == NULL || buf->size < size) {
79 buf->start = (char *)realloc(buf->start, size);
80 buf->size = size;
81 }
82}
83
84void message_decode(pn_message_t *m, pn_delivery_t *d, pn_rwbytes_t *buf) {
85 ssize_t size = pn_delivery_pending(d);

Callers 3

handleMethod · 0.85
message_decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected