/third_party/nghttp2/tests/ |
D | nghttp2_hd_test.c | 37 nghttp2_hd_deflater deflater; in test_nghttp2_hd_deflate() local 59 CU_ASSERT(0 == nghttp2_hd_deflate_init(&deflater, mem)); in test_nghttp2_hd_deflate() 62 rv = nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva1, ARRLEN(nva1)); in test_nghttp2_hd_deflate() 76 rv = nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva2, ARRLEN(nva2)); in test_nghttp2_hd_deflate() 91 rv = nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva3, ARRLEN(nva3)); in test_nghttp2_hd_deflate() 105 rv = nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva4, ARRLEN(nva4)); in test_nghttp2_hd_deflate() 119 rv = nghttp2_hd_deflate_hd_bufs(&deflater, &bufs, nva5, ARRLEN(nva5)); in test_nghttp2_hd_deflate() 135 nghttp2_hd_deflate_free(&deflater); in test_nghttp2_hd_deflate() 139 nghttp2_hd_deflater deflater; in test_nghttp2_hd_deflate_same_indexed_repr() local 154 CU_ASSERT(0 == nghttp2_hd_deflate_init(&deflater, mem)); in test_nghttp2_hd_deflate_same_indexed_repr() [all …]
|
D | failmalloc_test.c | 276 nghttp2_hd_deflater deflater; in run_nghttp2_session_recv() local 303 nghttp2_hd_deflate_init(&deflater, nghttp2_mem_fm()); in run_nghttp2_session_recv() 344 nghttp2_frame_pack_headers(&bufs, &frame.headers, &deflater); in run_nghttp2_session_recv() 387 nghttp2_hd_deflate_free(&deflater); in run_nghttp2_session_recv() 395 nghttp2_hd_deflater deflater; in run_nghttp2_frame_pack_headers() local 411 rv = nghttp2_hd_deflate_init(&deflater, nghttp2_mem_fm()); in run_nghttp2_frame_pack_headers() 426 rv = nghttp2_frame_pack_headers(&bufs, &frame.headers, &deflater); in run_nghttp2_frame_pack_headers() 441 nghttp2_hd_deflate_free(&deflater); in run_nghttp2_frame_pack_headers() 500 static int deflate_inflate(nghttp2_hd_deflater *deflater, in deflate_inflate() argument 505 rv = nghttp2_hd_deflate_hd_bufs(deflater, bufs, nva, nvlen); in deflate_inflate() [all …]
|
D | nghttp2_session_test.c | 673 nghttp2_hd_deflater deflater; in test_nghttp2_session_recv() local 689 nghttp2_hd_deflate_init(&deflater, mem); in test_nghttp2_session_recv() 695 rv = nghttp2_frame_pack_headers(&bufs, &frame.headers, &deflater); in test_nghttp2_session_recv() 741 nghttp2_hd_deflate_free(&deflater); in test_nghttp2_session_recv() 789 nghttp2_hd_deflater deflater; in test_nghttp2_session_recv_invalid_stream_id() local 805 nghttp2_hd_deflate_init(&deflater, mem); in test_nghttp2_session_recv_invalid_stream_id() 811 rv = nghttp2_frame_pack_headers(&bufs, &frame.headers, &deflater); in test_nghttp2_session_recv_invalid_stream_id() 823 nghttp2_hd_deflate_free(&deflater); in test_nghttp2_session_recv_invalid_stream_id() 836 nghttp2_hd_deflater deflater; in test_nghttp2_session_recv_invalid_frame() local 851 nghttp2_hd_deflate_init(&deflater, mem); in test_nghttp2_session_recv_invalid_frame() [all …]
|
D | nghttp2_frame_test.c | 72 nghttp2_hd_deflater deflater; in test_nghttp2_frame_pack_headers() local 88 nghttp2_hd_deflate_init(&deflater, mem); in test_nghttp2_frame_pack_headers() 99 rv = nghttp2_frame_pack_headers(&bufs, &frame, &deflater); in test_nghttp2_frame_pack_headers() 131 rv = nghttp2_frame_pack_headers(&bufs, &frame, &deflater); in test_nghttp2_frame_pack_headers() 165 nghttp2_hd_deflate_free(&deflater); in test_nghttp2_frame_pack_headers() 169 nghttp2_hd_deflater deflater; in test_nghttp2_frame_pack_headers_frame_too_large() local 194 nghttp2_hd_deflate_init(&deflater, mem); in test_nghttp2_frame_pack_headers_frame_too_large() 198 rv = nghttp2_frame_pack_headers(&bufs, &frame, &deflater); in test_nghttp2_frame_pack_headers_frame_too_large() 206 nghttp2_hd_deflate_free(&deflater); in test_nghttp2_frame_pack_headers_frame_too_large() 315 nghttp2_hd_deflater deflater; in test_nghttp2_frame_pack_push_promise() local [all …]
|
D | nghttp2_test_helper.c | 217 int pack_headers(nghttp2_bufs *bufs, nghttp2_hd_deflater *deflater, in pack_headers() argument 228 rv = nghttp2_frame_pack_headers(bufs, &frame.headers, deflater); in pack_headers() 235 int pack_push_promise(nghttp2_bufs *bufs, nghttp2_hd_deflater *deflater, in pack_push_promise() argument 247 rv = nghttp2_frame_pack_push_promise(bufs, &frame.push_promise, deflater); in pack_push_promise()
|
D | nghttp2_test_helper.h | 84 int pack_headers(nghttp2_bufs *bufs, nghttp2_hd_deflater *deflater, 88 int pack_push_promise(nghttp2_bufs *bufs, nghttp2_hd_deflater *deflater,
|
/third_party/nghttp2/src/ |
D | deflatehd.cc | 79 static void output_to_json(nghttp2_hd_deflater *deflater, const uint8_t *buf, in output_to_json() argument 106 dump_deflate_header_table(deflater)); in output_to_json() 113 static void deflate_hd(nghttp2_hd_deflater *deflater, in deflate_hd() argument 119 rv = nghttp2_hd_deflate_hd(deflater, buf.data(), buf.size(), in deflate_hd() 129 output_to_json(deflater, buf.data(), rv, inputlen, nva, seq); in deflate_hd() 132 static int deflate_hd_json(json_t *obj, nghttp2_hd_deflater *deflater, in deflate_hd_json() argument 177 deflate_hd(deflater, nva, inputlen, seq); in deflate_hd_json() 183 nghttp2_hd_deflater *deflater; in init_deflater() local 184 nghttp2_hd_deflate_new(&deflater, config.deflate_table_size); in init_deflater() 186 nghttp2_hd_deflate_change_table_size(deflater, config.table_size); in init_deflater() [all …]
|
D | comp_helper.c | 34 json_t *dump_deflate_header_table(nghttp2_hd_deflater *deflater) { in dump_deflate_header_table() argument 37 size_t len = nghttp2_hd_deflate_get_num_table_entries(deflater); in dump_deflate_header_table() 43 const nghttp2_nv *nv = nghttp2_hd_deflate_get_table_entry(deflater, i); in dump_deflate_header_table() 57 (json_int_t)nghttp2_hd_deflate_get_dynamic_table_size(deflater))); in dump_deflate_header_table() 61 (json_int_t)nghttp2_hd_deflate_get_max_dynamic_table_size(deflater))); in dump_deflate_header_table()
|
D | comp_helper.h | 40 json_t *dump_deflate_header_table(nghttp2_hd_deflater *deflater);
|
/third_party/nghttp2/lib/ |
D | nghttp2_hd.c | 696 int nghttp2_hd_deflate_init(nghttp2_hd_deflater *deflater, nghttp2_mem *mem) { in nghttp2_hd_deflate_init() argument 698 deflater, NGHTTP2_HD_DEFAULT_MAX_DEFLATE_BUFFER_SIZE, mem); in nghttp2_hd_deflate_init() 701 int nghttp2_hd_deflate_init2(nghttp2_hd_deflater *deflater, in nghttp2_hd_deflate_init2() argument 705 rv = hd_context_init(&deflater->ctx, mem); in nghttp2_hd_deflate_init2() 710 hd_map_init(&deflater->map); in nghttp2_hd_deflate_init2() 713 deflater->notify_table_size_change = 1; in nghttp2_hd_deflate_init2() 714 deflater->ctx.hd_table_bufsize_max = max_deflate_dynamic_table_size; in nghttp2_hd_deflate_init2() 716 deflater->notify_table_size_change = 0; in nghttp2_hd_deflate_init2() 719 deflater->deflate_hd_table_bufsize_max = max_deflate_dynamic_table_size; in nghttp2_hd_deflate_init2() 720 deflater->min_hd_table_bufsize_max = UINT32_MAX; in nghttp2_hd_deflate_init2() [all …]
|
D | nghttp2_hd.h | 290 int nghttp2_hd_deflate_init(nghttp2_hd_deflater *deflater, nghttp2_mem *mem); 305 int nghttp2_hd_deflate_init2(nghttp2_hd_deflater *deflater, 312 void nghttp2_hd_deflate_free(nghttp2_hd_deflater *deflater); 334 int nghttp2_hd_deflate_hd_bufs(nghttp2_hd_deflater *deflater,
|
D | nghttp2_frame.h | 140 nghttp2_hd_deflater *deflater); 262 nghttp2_hd_deflater *deflater);
|
/third_party/node/deps/nghttp2/lib/ |
D | nghttp2_hd.c | 691 int nghttp2_hd_deflate_init(nghttp2_hd_deflater *deflater, nghttp2_mem *mem) { in nghttp2_hd_deflate_init() argument 693 deflater, NGHTTP2_HD_DEFAULT_MAX_DEFLATE_BUFFER_SIZE, mem); in nghttp2_hd_deflate_init() 696 int nghttp2_hd_deflate_init2(nghttp2_hd_deflater *deflater, in nghttp2_hd_deflate_init2() argument 700 rv = hd_context_init(&deflater->ctx, mem); in nghttp2_hd_deflate_init2() 705 hd_map_init(&deflater->map); in nghttp2_hd_deflate_init2() 708 deflater->notify_table_size_change = 1; in nghttp2_hd_deflate_init2() 709 deflater->ctx.hd_table_bufsize_max = max_deflate_dynamic_table_size; in nghttp2_hd_deflate_init2() 711 deflater->notify_table_size_change = 0; in nghttp2_hd_deflate_init2() 714 deflater->deflate_hd_table_bufsize_max = max_deflate_dynamic_table_size; in nghttp2_hd_deflate_init2() 715 deflater->min_hd_table_bufsize_max = UINT32_MAX; in nghttp2_hd_deflate_init2() [all …]
|
D | nghttp2_hd.h | 289 int nghttp2_hd_deflate_init(nghttp2_hd_deflater *deflater, nghttp2_mem *mem); 304 int nghttp2_hd_deflate_init2(nghttp2_hd_deflater *deflater, 311 void nghttp2_hd_deflate_free(nghttp2_hd_deflater *deflater); 333 int nghttp2_hd_deflate_hd_bufs(nghttp2_hd_deflater *deflater,
|
D | nghttp2_frame.h | 139 nghttp2_hd_deflater *deflater); 261 nghttp2_hd_deflater *deflater);
|
/third_party/node/test/parallel/ |
D | test-zlib-flush-drain.js | 13 const deflater = zlib.createDeflate(opts); constant 19 const flush = deflater.flush; 20 deflater.flush = function(kind, callback) { 25 deflater.write(bigData); 27 const ws = deflater._writableState; 31 deflater.flush(function(err) { 35 deflater.on('drain', function() {
|
D | test-zlib-params.js | 10 const deflater = zlib.createDeflate(opts); constant 18 deflater.write(chunk1, function() { 19 deflater.params(0, zlib.constants.Z_DEFAULT_STRATEGY, function() { 20 while (deflater.read()); 21 deflater.end(chunk2, function() { 24 while (buf = deflater.read()) 29 while (deflater.read());
|
D | test-zlib-flush.js | 10 const deflater = zlib.createDeflate(opts); constant 20 deflater.write(chunk, function() { 21 deflater.flush(zlib.constants.Z_NO_FLUSH, function() { 22 actualNone = deflater.read(); 23 deflater.flush(function() { 26 while (buf = deflater.read())
|
D | test-zlib-brotli-flush.js | 9 const deflater = new zlib.BrotliCompress(); constant 15 deflater.write(chunk, function() { 16 deflater.flush(function() { 19 while (buf = deflater.read())
|
/third_party/nghttp2/examples/ |
D | deflate.c | 40 static void deflate(nghttp2_hd_deflater *deflater, 49 nghttp2_hd_deflater *deflater; in main() local 64 rv = nghttp2_hd_deflate_new(&deflater, 4096); in main() 81 deflate(deflater, inflater, nva1, sizeof(nva1) / sizeof(nva1[0])); in main() 85 deflate(deflater, inflater, nva2, sizeof(nva2) / sizeof(nva2[0])); in main() 88 nghttp2_hd_deflate_del(deflater); in main() 93 static void deflate(nghttp2_hd_deflater *deflater, in deflate() argument 118 buflen = nghttp2_hd_deflate_bound(deflater, nva, nvlen); in deflate() 121 rv = nghttp2_hd_deflate_hd(deflater, buf, buflen, nva, nvlen); in deflate()
|
/third_party/nghttp2/fuzz/ |
D | fuzz_frames.cc | 36 nghttp2_hd_deflater deflater; in check_frame_pack_headers() local 52 nghttp2_hd_deflate_init(&deflater, mem); in check_frame_pack_headers() 69 rv = nghttp2_frame_pack_headers(&bufs, &frame, &deflater); in check_frame_pack_headers() 92 nghttp2_hd_deflate_free(&deflater); in check_frame_pack_headers() 96 nghttp2_hd_deflater deflater; in check_frame_push_promise() local 112 nghttp2_hd_deflate_init(&deflater, mem); in check_frame_push_promise() 128 rv = nghttp2_frame_pack_push_promise(&bufs, &frame, &deflater); in check_frame_push_promise() 149 nghttp2_hd_deflate_free(&deflater); in check_frame_push_promise()
|
/third_party/node/benchmark/zlib/ |
D | deflate.js | 20 const deflater = zlib.createDeflate(); 21 deflater.resume(); 22 deflater.on('finish', () => { 29 return deflater.end(); 30 deflater.write(chunk, next);
|
/third_party/nghttp2/doc/sources/ |
D | tutorial-hpack.rst | 22 the deflater will use. This will limit the memory usage by the 23 deflater object for the dynamic header table. If in doubt, just 29 ssize_t nghttp2_hd_deflate_hd(nghttp2_hd_deflater *deflater, 33 The *deflater* is the deflater object initialized by 54 size_t nghttp2_hd_deflate_bound(nghttp2_hd_deflater *deflater, 57 Pass this function the same parameters (*deflater*, *nva*, and 65 further calls with the same deflater object will fail. Thus it's very
|
/third_party/node/deps/nghttp2/lib/includes/nghttp2/ |
D | nghttp2.h | 4866 NGHTTP2_EXTERN void nghttp2_hd_deflate_del(nghttp2_hd_deflater *deflater); 4892 nghttp2_hd_deflate_change_table_size(nghttp2_hd_deflater *deflater, 4922 NGHTTP2_EXTERN ssize_t nghttp2_hd_deflate_hd(nghttp2_hd_deflater *deflater, 4954 NGHTTP2_EXTERN ssize_t nghttp2_hd_deflate_hd_vec(nghttp2_hd_deflater *deflater, 4966 NGHTTP2_EXTERN size_t nghttp2_hd_deflate_bound(nghttp2_hd_deflater *deflater, 4978 size_t nghttp2_hd_deflate_get_num_table_entries(nghttp2_hd_deflater *deflater); 4992 nghttp2_hd_deflate_get_table_entry(nghttp2_hd_deflater *deflater, size_t idx); 5001 size_t nghttp2_hd_deflate_get_dynamic_table_size(nghttp2_hd_deflater *deflater); 5010 nghttp2_hd_deflate_get_max_dynamic_table_size(nghttp2_hd_deflater *deflater);
|
/third_party/nghttp2/lib/includes/nghttp2/ |
D | nghttp2.h | 5198 NGHTTP2_EXTERN void nghttp2_hd_deflate_del(nghttp2_hd_deflater *deflater); 5224 nghttp2_hd_deflate_change_table_size(nghttp2_hd_deflater *deflater, 5254 NGHTTP2_EXTERN ssize_t nghttp2_hd_deflate_hd(nghttp2_hd_deflater *deflater, 5287 NGHTTP2_EXTERN ssize_t nghttp2_hd_deflate_hd_vec(nghttp2_hd_deflater *deflater, 5299 NGHTTP2_EXTERN size_t nghttp2_hd_deflate_bound(nghttp2_hd_deflater *deflater, 5311 size_t nghttp2_hd_deflate_get_num_table_entries(nghttp2_hd_deflater *deflater); 5325 nghttp2_hd_deflate_get_table_entry(nghttp2_hd_deflater *deflater, size_t idx); 5334 size_t nghttp2_hd_deflate_get_dynamic_table_size(nghttp2_hd_deflater *deflater); 5343 nghttp2_hd_deflate_get_max_dynamic_table_size(nghttp2_hd_deflater *deflater);
|