| 242 | } |
| 243 | |
| 244 | pn_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 | |
| 253 | pn_rwbytes_t pn_buffer_memory(pn_buffer_t *buf) |
| 254 | { |
no test coverage detected