Lines Matching refs:rv
846 int rv;
853 rv = nghttp3_ringbuf_init(&ctx->dtable, len2, sizeof(nghttp3_qpack_entry *),
855 if (rv != 0) {
856 return rv;
908 int rv;
910 rv = qpack_context_init(&encoder->ctx, hard_max_dtable_capacity, 0, mem);
911 if (rv != 0) {
912 return rv;
1035 int rv;
1038 rv = nghttp3_qpack_stream_new(&stream, stream_id, mem);
1039 if (rv != 0) {
1040 assert(rv == NGHTTP3_ERR_NOMEM);
1041 return rv;
1043 rv = nghttp3_map_insert(&encoder->streams,
1045 if (rv != 0) {
1046 assert(rv == NGHTTP3_ERR_NOMEM);
1048 return rv;
1058 rv = nghttp3_qpack_header_block_ref_new(&ref, max_cnt, min_cnt, mem);
1059 if (rv != 0) {
1060 return rv;
1063 rv = nghttp3_qpack_stream_add_ref(stream, ref);
1064 if (rv != 0) {
1066 return rv;
1071 rv = nghttp3_qpack_encoder_block_stream(encoder, stream);
1072 if (rv != 0) {
1073 return rv;
1146 int rv = 0;
1155 rv = nghttp3_qpack_encoder_process_dtable_update(encoder, ebuf);
1156 if (rv != 0) {
1173 rv = nghttp3_qpack_encoder_encode_nv(encoder, &max_cnt, &min_cnt, rbuf,
1175 if (rv != 0) {
1188 rv = qpack_encoder_add_stream_ref(encoder, stream_id, stream, max_cnt,
1190 if (rv != 0) {
1198 return rv;
1214 int rv;
1218 rv = reserve_buf(rbuf, len, mem);
1219 if (rv != 0) {
1220 return rv;
1237 int rv;
1247 rv = nghttp3_qpack_encoder_write_set_dtable_cap(encoder, ebuf,
1249 if (rv != 0) {
1250 return rv;
1254 rv = nghttp3_qpack_encoder_write_set_dtable_cap(
1256 if (rv != 0) {
1257 return rv;
1427 int rv;
1474 rv = nghttp3_qpack_encoder_write_duplicate_insert(encoder, ebuf,
1476 if (rv != 0) {
1477 return rv;
1479 rv = nghttp3_qpack_encoder_dtable_duplicate_add(encoder,
1481 if (rv != 0) {
1482 return rv;
1497 rv = nghttp3_qpack_encoder_write_static_insert(encoder, ebuf,
1499 if (rv != 0) {
1500 return rv;
1502 rv = nghttp3_qpack_encoder_dtable_static_add(encoder, (size_t)sres.index,
1504 if (rv != 0) {
1505 return rv;
1527 rv = nghttp3_qpack_encoder_write_dynamic_insert(encoder, ebuf,
1529 if (rv != 0) {
1530 return rv;
1537 rv = nghttp3_qpack_encoder_dtable_dynamic_add(encoder, (size_t)dres.index,
1539 if (rv != 0) {
1540 return rv;
1561 rv = nghttp3_qpack_encoder_dtable_literal_add(encoder, nv, token, hash);
1562 if (rv != 0) {
1563 return rv;
1565 rv = nghttp3_qpack_encoder_write_literal_insert(encoder, ebuf, nv);
1566 if (rv != 0) {
1567 return rv;
1671 int rv;
1679 rv = nghttp3_ringbuf_init(&stream->refs, 4,
1681 if (rv != 0) {
1683 return rv;
1733 int rv;
1736 rv = nghttp3_ringbuf_reserve(&stream->refs,
1738 if (rv != 0) {
1739 return rv;
1804 int rv;
1818 rv = reserve_buf(buf, len, encoder->ctx.mem);
1819 if (rv != 0) {
1820 return rv;
1895 int rv;
1917 rv = reserve_buf(buf, len, encoder->ctx.mem);
1918 if (rv != 0) {
1919 return rv;
1993 int rv;
1997 rv = reserve_buf(ebuf, len, encoder->ctx.mem);
1998 if (rv != 0) {
1999 return rv;
2029 int rv;
2060 rv = nghttp3_ringbuf_reserve(&ctx->dtable,
2062 if (rv != 0) {
2083 return rv;
2093 int rv;
2095 rv = nghttp3_rcbuf_new2(&qnv.value, nv->value, nv->valuelen, mem);
2096 if (rv != 0) {
2097 return rv;
2108 rv = nghttp3_qpack_context_dtable_add(&encoder->ctx, &qnv,
2113 return rv;
2123 int rv;
2125 rv = nghttp3_rcbuf_new2(&qnv.value, nv->value, nv->valuelen, mem);
2126 if (rv != 0) {
2127 return rv;
2138 rv = nghttp3_qpack_context_dtable_add(&encoder->ctx, &qnv,
2144 return rv;
2151 int rv;
2159 rv = nghttp3_qpack_context_dtable_add(&encoder->ctx, &qnv,
2165 return rv;
2173 int rv;
2175 rv = nghttp3_rcbuf_new2(&qnv.name, nv->name, nv->namelen, mem);
2176 if (rv != 0) {
2177 return rv;
2180 rv = nghttp3_rcbuf_new2(&qnv.value, nv->value, nv->valuelen, mem);
2181 if (rv != 0) {
2183 return rv;
2189 rv = nghttp3_qpack_context_dtable_add(&encoder->ctx, &qnv,
2195 return rv;
2376 int rv;
2381 rv = reserve_buf(pbuf, len, encoder->ctx.mem);
2382 if (rv != 0) {
2383 return rv;
2490 int rv;
2526 rv = NGHTTP3_ERR_QPACK_DECODER_STREAM_ERROR;
2538 rv = nghttp3_qpack_encoder_add_icnt(encoder, encoder->rstate.left);
2539 if (rv != 0) {
2544 rv = nghttp3_qpack_encoder_ack_header(encoder,
2546 if (rv != 0) {
2574 return rv;
2641 int rv;
2643 rv = qpack_context_init(&decoder->ctx, hard_max_dtable_capacity,
2645 if (rv != 0) {
2646 return rv;
2758 int rv;
2803 rv = NGHTTP3_ERR_QPACK_ENCODER_STREAM_ERROR;
2811 rv = NGHTTP3_ERR_QPACK_ENCODER_STREAM_ERROR;
2824 rv = nghttp3_qpack_decoder_set_max_dtable_capacity(
2826 if (rv != 0) {
2827 rv = NGHTTP3_ERR_QPACK_ENCODER_STREAM_ERROR;
2836 rv = nghttp3_qpack_decoder_rel2abs(decoder, &decoder->rstate);
2837 if (rv < 0) {
2842 rv = nghttp3_qpack_decoder_dtable_duplicate_add(decoder);
2843 if (rv != 0) {
2870 rv = NGHTTP3_ERR_QPACK_ENCODER_STREAM_ERROR;
2881 rv = NGHTTP3_ERR_QPACK_HEADER_TOO_LARGE;
2888 rv = nghttp3_rcbuf_new(&decoder->rstate.name,
2892 rv = nghttp3_rcbuf_new(&decoder->rstate.name,
2895 if (rv != 0) {
2908 rv = NGHTTP3_ERR_QPACK_ENCODER_STREAM_ERROR;
2927 rv = (int)nread;
2952 rv = NGHTTP3_ERR_QPACK_ENCODER_STREAM_ERROR;
2963 rv = NGHTTP3_ERR_QPACK_HEADER_TOO_LARGE;
2970 rv = nghttp3_rcbuf_new(&decoder->rstate.value,
2974 rv = nghttp3_rcbuf_new(&decoder->rstate.value,
2977 if (rv != 0) {
2993 rv = NGHTTP3_ERR_QPACK_ENCODER_STREAM_ERROR;
3007 rv = nghttp3_qpack_decoder_dtable_indexed_add(decoder);
3010 rv = nghttp3_qpack_decoder_dtable_literal_add(decoder);
3017 if (rv != 0) {
3028 rv = (int)nread;
3042 rv = nghttp3_qpack_decoder_dtable_indexed_add(decoder);
3045 rv = nghttp3_qpack_decoder_dtable_literal_add(decoder);
3052 if (rv != 0) {
3066 return rv;
3112 int rv;
3127 rv = nghttp3_qpack_context_dtable_add(&decoder->ctx, &qnv, NULL, 0);
3131 return rv;
3136 int rv;
3153 rv = nghttp3_qpack_context_dtable_add(&decoder->ctx, &qnv, NULL, 0);
3158 return rv;
3162 int rv;
3180 rv = nghttp3_qpack_context_dtable_add(&decoder->ctx, &qnv, NULL, 0);
3185 return rv;
3190 int rv;
3206 rv = nghttp3_qpack_context_dtable_add(&decoder->ctx, &qnv, NULL, 0);
3211 return rv;
3254 int rv;
3273 rv = NGHTTP3_ERR_QPACK_DECOMPRESSION_FAILED;
3283 rv = nghttp3_qpack_decoder_reconstruct_ricnt(decoder, &sctx->ricnt,
3285 if (rv != 0) {
3304 rv = NGHTTP3_ERR_QPACK_DECOMPRESSION_FAILED;
3316 rv = NGHTTP3_ERR_QPACK_DECOMPRESSION_FAILED;
3381 rv = NGHTTP3_ERR_QPACK_DECOMPRESSION_FAILED;
3393 rv = nghttp3_qpack_decoder_brel2abs(decoder, sctx);
3394 if (rv != 0) {
3405 rv = nghttp3_qpack_decoder_pbrel2abs(decoder, sctx);
3406 if (rv != 0) {
3417 rv = nghttp3_qpack_decoder_brel2abs(decoder, sctx);
3418 if (rv != 0) {
3425 rv = nghttp3_qpack_decoder_pbrel2abs(decoder, sctx);
3426 if (rv != 0) {
3447 rv = NGHTTP3_ERR_QPACK_DECOMPRESSION_FAILED;
3458 rv = NGHTTP3_ERR_QPACK_HEADER_TOO_LARGE;
3465 rv = nghttp3_rcbuf_new(&sctx->rstate.name,
3469 rv = nghttp3_rcbuf_new(&sctx->rstate.name,
3472 if (rv != 0) {
3484 rv = NGHTTP3_ERR_QPACK_DECOMPRESSION_FAILED;
3502 rv = (int)nread;
3527 rv = NGHTTP3_ERR_QPACK_DECOMPRESSION_FAILED;
3538 rv = NGHTTP3_ERR_QPACK_HEADER_TOO_LARGE;
3545 rv = nghttp3_rcbuf_new(&sctx->rstate.value,
3549 rv = nghttp3_rcbuf_new(&sctx->rstate.value,
3552 if (rv != 0) {
3567 rv = NGHTTP3_ERR_QPACK_DECOMPRESSION_FAILED;
3582 rv = nghttp3_qpack_decoder_emit_indexed_name(decoder, sctx, nv);
3583 if (rv != 0) {
3605 rv = (int)nread;
3620 rv = nghttp3_qpack_decoder_emit_indexed_name(decoder, sctx, nv);
3621 if (rv != 0) {
3655 rv = NGHTTP3_ERR_QPACK_DECOMPRESSION_FAILED;
3662 rv = nghttp3_qpack_decoder_write_section_ack(decoder, sctx);
3663 if (rv != 0) {
3673 return rv;
3686 int rv;
3692 rv = reserve_buf_small(
3695 if (rv != 0) {
3696 return rv;
3756 int rv;
3762 rv = reserve_buf(&decoder->dbuf,
3765 if (rv != 0) {
3766 return rv;
4002 int rv;
4010 rv = nghttp3_qpack_encoder_init(p, hard_max_dtable_capacity, mem);
4011 if (rv != 0) {
4012 return rv;
4067 int rv;
4075 rv = nghttp3_qpack_decoder_init(p, hard_max_dtable_capacity,
4077 if (rv != 0) {
4078 return rv;