Lines Matching defs:buf_end

60 	if (buf == buf_end) {  \
81 buf = findchar_fast(buf, buf_end, ranges2, 4, &found2); \
114 findchar_fast(const char *buf, const char *buf_end, const char *ranges,
118 if (likely(buf_end - buf >= 16)) {
121 size_t left = (buf_end - buf) & ~15;
139 (void)buf_end;
147 get_token_to_eol(const char *buf, const char *buf_end, const char **token,
158 buf = findchar_fast(buf, buf_end, ranges1, 6, &found);
164 while (likely(buf_end - buf >= 8)) {
220 is_complete(const char *buf, const char *buf_end, size_t last_len, int *ret) {
266 /* returned pointer is always within [buf, buf_end), or null */
268 parse_token(const char *buf, const char *buf_end, const char **token,
285 buf = findchar_fast(buf, buf_end, ranges, sizeof(ranges) - 1, &found);
304 /* returned pointer is always within [buf, buf_end), or null */
306 parse_http_version(const char *buf, const char *buf_end, int *minor_version,
309 if (buf_end - buf < 9) {
325 parse_headers(const char *buf, const char *buf_end, struct phr_header *headers,
345 if ((buf = parse_token(buf, buf_end,
369 if ((buf = get_token_to_eol(buf, buf_end, &value, &value_len,
389 parse_request(const char *buf, const char *buf_end, const char **method,
403 if ((buf = parse_token(buf, buf_end, method, method_len, ' ', ret)) ==
421 if ((buf = parse_http_version(buf, buf_end, minor_version, ret)) ==
436 return parse_headers(buf, buf_end, headers, num_headers, max_headers,
445 const char *buf = buf_start, *buf_end = buf_start + len;
458 if (last_len != 0 && is_complete(buf, buf_end, last_len, &r) == NULL) {
462 if ((buf = parse_request(buf, buf_end, method, method_len, path,
473 parse_response(const char *buf, const char *buf_end, int *minor_version,
478 if ((buf = parse_http_version(buf, buf_end, minor_version, ret)) ==
494 if (buf_end - buf < 4) {
501 if ((buf = get_token_to_eol(buf, buf_end, msg, msg_len, ret)) == NULL) {
521 return parse_headers(buf, buf_end, headers, num_headers, max_headers,
530 const char *buf = buf_start, *buf_end = buf + len;
542 if (last_len != 0 && is_complete(buf, buf_end, last_len, &r) == NULL) {
546 if ((buf = parse_response(buf, buf_end, minor_version, status, msg,
559 const char *buf = buf_start, *buf_end = buf + len;
567 if (last_len != 0 && is_complete(buf, buf_end, last_len, &r) == NULL) {
571 if ((buf = parse_headers(buf, buf_end, headers, num_headers,