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

Function new_rbuf

c/tests/tls_test.cpp:256–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256pn_raw_buffer_t new_rbuf(size_t sz) {
257 pn_raw_buffer_t rb = {0};
258 rb.bytes = (char *) malloc(sz);
259 // REQUIRE(rb.bytes != NULL);
260 rb.capacity = sz;
261 return rb;
262}
263
264void free_rbuf(pn_raw_buffer_t &rb) {
265 free(rb.bytes);

Callers 2

pumpFunction · 0.85
tls_test.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected