Lines Matching refs:hcp

19 static nxt_int_t nxt_http_chunk_buffer(nxt_http_chunk_parse_t *hcp,
28 nxt_http_chunk_parse(nxt_task_t *task, nxt_http_chunk_parse_t *hcp, in nxt_http_chunk_parse() argument
47 state = hcp->state; in nxt_http_chunk_parse()
51 hcp->pos = b->mem.pos; in nxt_http_chunk_parse()
53 while (hcp->pos < b->mem.free) { in nxt_http_chunk_parse()
59 ret = nxt_http_chunk_buffer(hcp, &tail, b); in nxt_http_chunk_parse()
66 hcp->error = 1; in nxt_http_chunk_parse()
79 ch = *hcp->pos++; in nxt_http_chunk_parse()
89 hcp->chunk_size = c; in nxt_http_chunk_parse()
96 hcp->chunk_size = 0x0A + c; in nxt_http_chunk_parse()
121 if (nxt_fast_path(nxt_size_is_sufficient(hcp->chunk_size))) { in nxt_http_chunk_parse()
122 hcp->chunk_size = (hcp->chunk_size << 4) + c; in nxt_http_chunk_parse()
131 if (hcp->chunk_size != 0) { in nxt_http_chunk_parse()
136 hcp->last = 1; in nxt_http_chunk_parse()
154 if (!hcp->last) { in nxt_http_chunk_parse()
186 hcp->state = state; in nxt_http_chunk_parse()
192 hcp->chunk_error = 1; in nxt_http_chunk_parse()
199 nxt_http_chunk_buffer(nxt_http_chunk_parse_t *hcp, nxt_buf_t ***tail, in nxt_http_chunk_buffer() argument
206 p = hcp->pos; in nxt_http_chunk_buffer()
209 b = nxt_buf_mem_alloc(hcp->mem_pool, 0, 0); in nxt_http_chunk_buffer()
217 nxt_mp_retain(hcp->mem_pool); in nxt_http_chunk_buffer()
225 if (hcp->chunk_size < size) { in nxt_http_chunk_buffer()
226 p += hcp->chunk_size; in nxt_http_chunk_buffer()
227 hcp->pos = p; in nxt_http_chunk_buffer()
238 hcp->chunk_size -= size; in nxt_http_chunk_buffer()
240 if (hcp->chunk_size == 0) { in nxt_http_chunk_buffer()