Lines Matching defs:buffer
77 isc_buffer_init(&tcpmsg->buffer, region.base, region.length);
114 isc_buffer_add(&tcpmsg->buffer, ev->n);
132 tcpmsg->buffer.base = NULL;
133 tcpmsg->buffer.length = 0;
165 if (tcpmsg->buffer.base != NULL) {
166 isc_mem_put(tcpmsg->mctx, tcpmsg->buffer.base,
167 tcpmsg->buffer.length);
168 tcpmsg->buffer.base = NULL;
169 tcpmsg->buffer.length = 0;
200 dns_tcpmsg_keepbuffer(dns_tcpmsg_t *tcpmsg, isc_buffer_t *buffer) {
202 REQUIRE(buffer != NULL);
204 *buffer = tcpmsg->buffer;
205 tcpmsg->buffer.base = NULL;
206 tcpmsg->buffer.length = 0;
214 if (tcpmsg->buffer.base == NULL)
217 isc_mem_put(tcpmsg->mctx, tcpmsg->buffer.base, tcpmsg->buffer.length);
218 tcpmsg->buffer.base = NULL;
219 tcpmsg->buffer.length = 0;
229 if (tcpmsg->buffer.base != NULL) {
230 isc_mem_put(tcpmsg->mctx, tcpmsg->buffer.base,
231 tcpmsg->buffer.length);
232 tcpmsg->buffer.base = NULL;
233 tcpmsg->buffer.length = 0;