Lines Matching refs:str_len
242 uint32_t str_len; in hpack_string_decode() local
256 &str_len); in hpack_string_decode()
265 if (str_len > datalen) { in hpack_string_decode()
270 ret = hpack_huffman_decode(buf, str_len, type, header); in hpack_string_decode()
277 header->name_len = str_len; in hpack_string_decode()
280 header->value_len = str_len; in hpack_string_decode()
284 len += str_len; in hpack_string_decode()
494 size_t str_len; in hpack_string_encode() local
499 str_len = header->name_len; in hpack_string_encode()
502 str_len = header->value_len; in hpack_string_encode()
506 ret = http_hpack_huffman_encode(str, str_len, header->buf, in hpack_string_encode()
508 if (ret > 0 && ret < str_len) { in hpack_string_encode()
511 str_len = ret; in hpack_string_encode()
516 ret = hpack_integer_encode(buf, buflen, str_len, prefix, in hpack_string_encode()
527 if (str_len > buflen) { in hpack_string_encode()
531 memcpy(buf, str, str_len); in hpack_string_encode()
532 len += str_len; in hpack_string_encode()