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

Function pni_buffer_tail_space

c/src/core/buffer.c:107–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107static size_t pni_buffer_tail_space(pn_buffer_t *buf)
108{
109 if (pni_buffer_wrapped(buf)) {
110 return pn_buffer_available(buf);
111 } else {
112 return buf->capacity - pni_buffer_tail(buf);
113 }
114}
115
116int pn_buffer_ensure(pn_buffer_t *buf, size_t size)
117{

Callers 1

pn_buffer_appendFunction · 0.85

Calls 3

pni_buffer_wrappedFunction · 0.85
pn_buffer_availableFunction · 0.85
pni_buffer_tailFunction · 0.85

Tested by

no test coverage detected