Lines Matching refs:rv
655 int rv;
657 rv = hd_ringbuf_reserve(ringbuf, ringbuf->len + 1, mem);
659 if (rv != 0) {
660 return rv;
675 int rv;
679 rv = hd_ringbuf_init(
682 if (rv != 0) {
683 return rv;
704 int rv;
705 rv = hd_context_init(&deflater->ctx, mem);
706 if (rv != 0) {
707 return rv;
726 int rv;
728 rv = hd_context_init(&inflater->ctx, mem);
729 if (rv != 0) {
758 return rv;
918 int rv;
937 rv = nghttp2_bufs_add(bufs, sb, blocklen);
938 if (rv != 0) {
939 return rv;
946 int rv;
963 rv = nghttp2_bufs_add(bufs, sb, blocklen);
964 if (rv != 0) {
965 return rv;
972 int rv;
1001 rv = nghttp2_bufs_add(bufs, sb, blocklen);
1002 if (rv != 0) {
1003 return rv;
1007 rv = nghttp2_hd_huff_encode(bufs, str, len);
1010 rv = nghttp2_bufs_add(bufs, str, len);
1013 return rv;
1034 int rv;
1061 rv = nghttp2_bufs_add(bufs, sb, blocklen);
1062 if (rv != 0) {
1063 return rv;
1066 rv = emit_string(bufs, nv->value, nv->valuelen);
1067 if (rv != 0) {
1068 return rv;
1076 int rv;
1082 rv = nghttp2_bufs_addb(bufs, pack_first_byte(indexing_mode));
1083 if (rv != 0) {
1084 return rv;
1087 rv = emit_string(bufs, nv->name, nv->namelen);
1088 if (rv != 0) {
1089 return rv;
1092 rv = emit_string(bufs, nv->value, nv->valuelen);
1093 if (rv != 0) {
1094 return rv;
1103 int rv;
1145 rv = hd_ringbuf_push_front(&context->hd_table, new_ent, mem);
1147 if (rv != 0) {
1151 return rv;
1344 int rv;
1384 rv = emit_indexed_block(bufs, (size_t)idx);
1385 if (rv != 0) {
1386 return rv;
1403 rv = nghttp2_rcbuf_new2(&hd_nv.name, nv->name, nv->namelen, mem);
1404 if (rv != 0) {
1405 return rv;
1409 rv = nghttp2_rcbuf_new2(&hd_nv.value, nv->value, nv->valuelen, mem);
1411 if (rv != 0) {
1413 return rv;
1419 rv = add_hd_table_incremental(&deflater->ctx, &hd_nv, &deflater->map, hash);
1424 if (rv != 0) {
1429 rv = emit_newname_block(bufs, nv, indexing_mode);
1431 rv = emit_indname_block(bufs, (size_t)idx, nv, indexing_mode);
1433 if (rv != 0) {
1434 return rv;
1444 int rv = 0;
1460 rv = emit_table_size(bufs, min_hd_table_bufsize_max);
1462 if (rv != 0) {
1467 rv = emit_table_size(bufs, deflater->ctx.hd_table_bufsize_max);
1469 if (rv != 0) {
1475 rv = deflate_nv(deflater, bufs, &nv[i]);
1476 if (rv != 0) {
1485 DEBUGF("deflatehd: error return %d\n", rv);
1488 return rv;
1495 int rv;
1500 rv = nghttp2_bufs_wrap_init(&bufs, buf, buflen, mem);
1502 if (rv != 0) {
1503 return rv;
1506 rv = nghttp2_hd_deflate_hd_bufs(deflater, &bufs, nv, nvlen);
1512 if (rv == NGHTTP2_ERR_BUFFER_ERROR) {
1516 if (rv != 0) {
1517 return rv;
1527 int rv;
1533 rv = nghttp2_bufs_wrap_init2(&bufs, vec, veclen, mem);
1535 if (rv != 0) {
1536 return rv;
1539 rv = nghttp2_hd_deflate_hd_bufs(deflater, &bufs, nv, nvlen);
1545 if (rv == NGHTTP2_ERR_BUFFER_ERROR) {
1549 if (rv != 0) {
1550 return rv;
1592 int rv;
1605 rv = nghttp2_hd_deflate_init2(deflater, deflate_hd_table_bufsize_max, mem);
1607 if (rv != 0) {
1610 return rv;
1649 ssize_t rv;
1654 rv = decode_length(&out, &inflater->shift, rfin, (uint32_t)inflater->left,
1657 if (rv == -1) {
1671 return rv;
1759 int rv;
1772 rv = add_hd_table_incremental(&inflater->ctx, &nv, NULL, 0);
1774 if (rv != 0) {
1775 return rv;
1804 int rv;
1819 rv = add_hd_table_incremental(&inflater->ctx, &nv, NULL, 0);
1820 if (rv != 0) {
1846 ssize_t rv;
1849 rv = nghttp2_hd_inflate_hd_nv(inflater, &hd_nv, inflate_flags, in, inlen,
1852 if (rv < 0) {
1853 return rv;
1866 return rv;
1873 ssize_t rv = 0;
1897 rv = NGHTTP2_ERR_HEADER_COMP;
1908 rv = NGHTTP2_ERR_HEADER_COMP;
1940 rv = hd_inflate_read_len(
1944 if (rv < 0) {
1947 in += rv;
1969 rv = hd_inflate_read_len(inflater, &rfin, in, last, prefixlen,
1971 if (rv < 0) {
1975 in += rv;
1982 rv = NGHTTP2_ERR_HEADER_COMP;
2013 rv = hd_inflate_read_len(inflater, &rfin, in, last, 7, NGHTTP2_HD_MAX_NV);
2014 if (rv < 0) {
2017 in += rv;
2030 rv = nghttp2_rcbuf_new(&inflater->namercbuf, inflater->left * 2 + 1,
2034 rv = nghttp2_rcbuf_new(&inflater->namercbuf, inflater->left + 1, mem);
2037 if (rv != 0) {
2046 rv = hd_inflate_read_huff(inflater, &inflater->namebuf, in, last);
2047 if (rv < 0) {
2051 in += rv;
2053 DEBUGF("inflatehd: %zd bytes read\n", rv);
2068 rv = hd_inflate_read(inflater, &inflater->namebuf, in, last);
2069 if (rv < 0) {
2073 in += rv;
2075 DEBUGF("inflatehd: %zd bytes read\n", rv);
2097 rv = hd_inflate_read_len(inflater, &rfin, in, last, 7, NGHTTP2_HD_MAX_NV);
2098 if (rv < 0) {
2102 in += rv;
2115 rv = nghttp2_rcbuf_new(&inflater->valuercbuf, inflater->left * 2 + 1,
2120 rv = nghttp2_rcbuf_new(&inflater->valuercbuf, inflater->left + 1, mem);
2123 if (rv != 0) {
2134 rv = hd_inflate_read_huff(inflater, &inflater->valuebuf, in, last);
2135 if (rv < 0) {
2139 in += rv;
2141 DEBUGF("inflatehd: %zd bytes read\n", rv);
2153 rv = hd_inflate_commit_newname(inflater, nv_out);
2155 rv = hd_inflate_commit_indname(inflater, nv_out);
2158 if (rv != 0) {
2167 rv = hd_inflate_read(inflater, &inflater->valuebuf, in, last);
2168 if (rv < 0) {
2169 DEBUGF("inflatehd: value read failure %zd: %s\n", rv,
2170 nghttp2_strerror((int)rv));
2174 in += rv;
2176 DEBUGF("inflatehd: %zd bytes read\n", rv);
2187 rv = hd_inflate_commit_newname(inflater, nv_out);
2189 rv = hd_inflate_commit_indname(inflater, nv_out);
2192 if (rv != 0) {
2213 rv = NGHTTP2_ERR_HEADER_COMP;
2225 rv = NGHTTP2_ERR_HEADER_COMP;
2232 DEBUGF("inflatehd: error return %zd\n", rv);
2235 return rv;
2250 int rv;
2263 rv = nghttp2_hd_inflate_init(inflater, mem);
2265 if (rv != 0) {
2268 return rv;