Lines Matching refs:free

1319     req->content_buf->free = nxt_unit_sptr_get(&r->preread_content);  in nxt_unit_process_req_headers()
1367 > (uint64_t) (req->content_buf->end - req->content_buf->free)) in nxt_unit_process_req_headers()
1412 l = req->content_buf->end - req->content_buf->free; in nxt_unit_process_req_body()
1416 l += b->buf.end - b->buf.free; in nxt_unit_process_req_body()
1665 b->buf.free = b->buf.start; in nxt_unit_process_websocket()
1684 b->buf.free += hsize; in nxt_unit_process_websocket()
2073 buf->free = buf->start + sizeof(nxt_unit_response_t) in nxt_unit_response_init()
2193 buf->free = p; in nxt_unit_response_realloc()
2253 > (uint32_t) (buf->end - buf->free))) in nxt_unit_response_add_field()
2267 nxt_unit_sptr_set(&f->name, buf->free); in nxt_unit_response_add_field()
2268 buf->free = nxt_cpymem(buf->free, name, name_length); in nxt_unit_response_add_field()
2269 *buf->free++ = '\0'; in nxt_unit_response_add_field()
2271 nxt_unit_sptr_set(&f->value, buf->free); in nxt_unit_response_add_field()
2272 buf->free = nxt_cpymem(buf->free, value, value_length); in nxt_unit_response_add_field()
2273 *buf->free++ = '\0'; in nxt_unit_response_add_field()
2310 if (nxt_slow_path(size > (uint32_t) (buf->end - buf->free))) { in nxt_unit_response_add_content()
2319 nxt_unit_sptr_set(&resp->piggyback_content, buf->free); in nxt_unit_response_add_content()
2325 buf->free = nxt_cpymem(buf->free, src, size); in nxt_unit_response_add_content()
2358 (int) (req->response_buf->free in nxt_unit_response_send()
2563 (int) (buf->free - buf->start)); in nxt_unit_buf_send()
2577 if (nxt_fast_path(buf->free > buf->start)) { in nxt_unit_buf_send()
2637 m.mmap_msg.size = buf->free - buf->start; in nxt_unit_mmap_buf_send()
2667 last_used = (u_char *) buf->free - 1; in nxt_unit_mmap_buf_send()
2670 if (buf->end - buf->free >= PORT_MMAP_CHUNK_SIZE) { in nxt_unit_mmap_buf_send()
2674 buf->free = buf->start; in nxt_unit_mmap_buf_send()
2682 buf->free = NULL; in nxt_unit_mmap_buf_send()
2897 part_size = req->response_buf->end - req->response_buf->free; in nxt_unit_response_write_nb()
2928 buf_size = mmap_buf.buf.end - mmap_buf.buf.free; in nxt_unit_response_write_nb()
2934 mmap_buf.buf.free = nxt_cpymem(mmap_buf.buf.free, in nxt_unit_response_write_nb()
2986 while (buf->end - buf->free > 0) { in nxt_unit_response_write_cb()
2987 n = read_info->read(read_info, buf->free, buf->end - buf->free); in nxt_unit_response_write_cb()
2995 buf->free += n; in nxt_unit_response_write_cb()
3030 while (!read_info->eof && buf->end > buf->free) { in nxt_unit_response_write_cb()
3031 n = read_info->read(read_info, buf->free, buf->end - buf->free); in nxt_unit_response_write_cb()
3040 buf->free += n; in nxt_unit_response_write_cb()
3107 b_size = b->end - b->free; in nxt_unit_request_readline_size()
3108 p = memchr(b->free, '\n', b_size); in nxt_unit_request_readline_size()
3112 l_size += p - b->free; in nxt_unit_request_readline_size()
3170 mmap_buf->buf.free = mmap_buf->buf.start; in nxt_unit_request_preread()
3191 mmap_buf->buf.end = mmap_buf->buf.free + res; in nxt_unit_request_preread()
3213 copy = buf->end - buf->free; in nxt_unit_buf_read()
3216 p = nxt_cpymem(p, buf->free, copy); in nxt_unit_buf_read()
3218 buf->free += copy; in nxt_unit_buf_read()
3222 if (buf->end == buf->free) { in nxt_unit_buf_read()
3351 wh = (void *) buf->free; in nxt_unit_websocket_sendv()
3353 buf->free = nxt_websocket_frame_init(wh, payload_len); in nxt_unit_websocket_sendv()
3362 copy = buf->end - buf->free; in nxt_unit_websocket_sendv()
3365 buf->free = nxt_cpymem(buf->free, b, copy); in nxt_unit_websocket_sendv()
3370 if (nxt_fast_path(buf->free > buf->start)) { in nxt_unit_websocket_sendv()
3392 if (buf->free > buf->start) { in nxt_unit_websocket_sendv()
3451 ws_impl->buf->buf.free = b + hsize; in nxt_unit_websocket_retain()
3941 mmap_buf->buf.free = mmap_buf->buf.start; in nxt_unit_get_outgoing_buf()
3958 mmap_buf->buf.free = NULL; in nxt_unit_get_outgoing_buf()
3970 mmap_buf->buf.free = mmap_buf->buf.start; in nxt_unit_get_outgoing_buf()
4274 b->buf.free = start; in nxt_unit_mmap_read()
4809 > (uint64_t) (req->content_buf->end - req->content_buf->free)) in nxt_unit_process_ready_req()
6758 free(p); in nxt_unit_free()