Lines Matching refs:buf
309 nxt_unit_buf_t *buf; in nxt_java_get_response_info() local
331 buf = req->response_buf; in nxt_java_get_response_info()
335 || extra_data > (uint32_t) (buf->end - buf->free)) in nxt_java_get_response_info()
337 p = buf->start + sizeof(nxt_unit_response_t) in nxt_java_get_response_info()
340 max_size = 2 * (buf->end - p); in nxt_java_get_response_info()
916 nxt_unit_buf_t *buf; in nxt_java_Response_reset() local
930 if (data->buf != NULL && data->buf->free > data->buf->start) { in nxt_java_Response_reset()
931 data->buf->free = data->buf->start; in nxt_java_Response_reset()
938 buf = req->response_buf; in nxt_java_Response_reset()
940 buf->free = buf->start + sizeof(nxt_unit_response_t) in nxt_java_Response_reset()
955 if (data->buf != NULL && data->buf->free > data->buf->start) { in nxt_java_Response_resetBuffer()
956 data->buf->free = data->buf->start; in nxt_java_Response_resetBuffer()
975 if (data->buf != NULL && data->buf->free > data->buf->start) { in nxt_java_Response_setBufferSize()
987 if (data->buf != NULL in nxt_java_Response_setBufferSize()
988 && (uint32_t) (data->buf->end - data->buf->start) < data->buf_size) in nxt_java_Response_setBufferSize()
990 nxt_unit_buf_free(data->buf); in nxt_java_Response_setBufferSize()
992 data->buf = NULL; in nxt_java_Response_setBufferSize()