Lines Matching refs:hoff
2345 unsigned short hoff[8192]; /* max num header lines + 3; 16k on stack */ in h2_send_headers_block() local
2346 hoff[0] = 1; /* number of lines */ in h2_send_headers_block()
2347 hoff[1] = 0; /* base offset for all lines */ in h2_send_headers_block()
2349 uint32_t rc = http_header_parse_hoff(hdrs, hlen, hoff); in h2_send_headers_block()
2350 if (0 == rc || rc > USHRT_MAX || hoff[0] >= sizeof(hoff)/sizeof(hoff[0])-1 in h2_send_headers_block()
2351 || 1 == hoff[0]) { /*(initial blank line (should not happen))*/ in h2_send_headers_block()
2355 hoff[0] = 1; in h2_send_headers_block()
2356 hoff[1] = 0; in h2_send_headers_block()
2357 if (http_header_parse_hoff(CONST_STR_LEN(":status: 500\r\n\r\n"),hoff)){ in h2_send_headers_block()
2395 for (; i < hoff[0]; ++i) { in h2_send_headers_block()
2396 const char *k = hdrs + ((i > 1) ? hoff[i] : 0); in h2_send_headers_block()
2397 const char *end = hdrs + hoff[i+1]; in h2_send_headers_block()
2495 unsigned short hoff[8192]; /* max num header lines + 3; 16k on stack */ in h2_send_end_stream_trailers() local
2496 hoff[0] = 1; /* number of lines */ in h2_send_end_stream_trailers()
2497 hoff[1] = 0; /* base offset for all lines */ in h2_send_end_stream_trailers()
2499 uint32_t rc = http_header_parse_hoff(BUF_PTR_LEN(trailers), hoff); in h2_send_end_stream_trailers()
2500 if (0 == rc || rc > USHRT_MAX || hoff[0] >= sizeof(hoff)/sizeof(hoff[0])-1 in h2_send_end_stream_trailers()
2501 || 1 == hoff[0]) { /*(initial blank line)*/ in h2_send_end_stream_trailers()
2508 for (int i = 1; i < hoff[0]; ++i) { in h2_send_end_stream_trailers()
2509 char *k = ptr + ((i > 1) ? hoff[i] : 0); in h2_send_end_stream_trailers()
2515 const char * const colon = memchr(k, ':', ptr+hoff[i+1]-k); in h2_send_end_stream_trailers()