/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 | 672 nghttp2_hd_deflater deflater; in test_nghttp2_session_recv() local 688 nghttp2_hd_deflate_init(&deflater, mem); in test_nghttp2_session_recv() 694 rv = nghttp2_frame_pack_headers(&bufs, &frame.headers, &deflater); in test_nghttp2_session_recv() 740 nghttp2_hd_deflate_free(&deflater); in test_nghttp2_session_recv() 788 nghttp2_hd_deflater deflater; in test_nghttp2_session_recv_invalid_stream_id() local 804 nghttp2_hd_deflate_init(&deflater, mem); in test_nghttp2_session_recv_invalid_stream_id() 810 rv = nghttp2_frame_pack_headers(&bufs, &frame.headers, &deflater); in test_nghttp2_session_recv_invalid_stream_id() 822 nghttp2_hd_deflate_free(&deflater); in test_nghttp2_session_recv_invalid_stream_id() 835 nghttp2_hd_deflater deflater; in test_nghttp2_session_recv_invalid_frame() local 850 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 | 212 int pack_headers(nghttp2_bufs *bufs, nghttp2_hd_deflater *deflater, in pack_headers() argument 223 rv = nghttp2_frame_pack_headers(bufs, &frame.headers, deflater); in pack_headers() 230 int pack_push_promise(nghttp2_bufs *bufs, nghttp2_hd_deflater *deflater, in pack_push_promise() argument 242 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 | 78 static void output_to_json(nghttp2_hd_deflater *deflater, const uint8_t *buf, in output_to_json() argument 105 dump_deflate_header_table(deflater)); in output_to_json() 112 static void deflate_hd(nghttp2_hd_deflater *deflater, in deflate_hd() argument 118 rv = nghttp2_hd_deflate_hd(deflater, buf.data(), buf.size(), in deflate_hd() 128 output_to_json(deflater, buf.data(), rv, inputlen, nva, seq); in deflate_hd() 131 static int deflate_hd_json(json_t *obj, nghttp2_hd_deflater *deflater, in deflate_hd_json() argument 176 deflate_hd(deflater, nva, inputlen, seq); in deflate_hd_json() 182 nghttp2_hd_deflater *deflater; in init_deflater() local 183 nghttp2_hd_deflate_new(&deflater, config.deflate_table_size); in init_deflater() 185 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()
|
/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/libsoup/libsoup/ |
D | soup-websocket-extension-deflate.c | 61 Deflater deflater; member 101 deflateEnd (&priv->deflater.zstream); in soup_websocket_extension_deflate_finalize() 211 … priv->deflater.no_context_takeover = priv->params.flags & PARAM_CLIENT_NO_CONTEXT_TAKEOVER; in soup_websocket_extension_deflate_configure() 216 … priv->deflater.no_context_takeover = priv->params.flags & PARAM_SERVER_NO_CONTEXT_TAKEOVER; in soup_websocket_extension_deflate_configure() 234 …if (deflateInit2 (&priv->deflater.zstream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, -deflater_max_window… in soup_websocket_extension_deflate_configure() 238 deflateEnd (&priv->deflater.zstream); in soup_websocket_extension_deflate_configure() 281 deflater_reset (Deflater *deflater) in deflater_reset() argument 283 if (deflater->no_context_takeover) in deflater_reset() 284 deflateReset (&deflater->zstream); in deflater_reset() 322 max_length = deflateBound(&priv->deflater.zstream, payload_length); in soup_websocket_extension_deflate_process_outgoing_message() [all …]
|
/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,
|
/third_party/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,
|
/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/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/python/ |
D | hpackmake.py | 27 deflater = nghttp2.HDDeflater(deflate_table_size) 30 deflater.change_table_size(table_size) 47 deflater.change_table_size(new_table_size) 54 outitem['wire'] = b2a_hex(deflater.deflate(hdrs)).decode('utf-8')
|
D | cnghttp2.pxd | 298 void nghttp2_hd_deflate_del(nghttp2_hd_deflater *deflater) 300 int nghttp2_hd_deflate_change_table_size(nghttp2_hd_deflater *deflater, 303 ssize_t nghttp2_hd_deflate_hd(nghttp2_hd_deflater *deflater, 307 size_t nghttp2_hd_deflate_bound(nghttp2_hd_deflater *deflater, 334 size_t nghttp2_hd_deflate_get_num_table_entries(nghttp2_hd_deflater *deflater) 336 const nghttp2_nv * nghttp2_hd_deflate_get_table_entry(nghttp2_hd_deflater *deflater, size_t idx)
|
/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
|
D | python-apiref.rst | 27 because the deflater and inflater share the same amount of header 28 table and the inflater decides that number. The deflater may not 44 Tells the deflater not to use reference set if *no_refset* is 46 invocation of :py:meth:`deflate()`, deflater will clear up 68 deflater = nghttp2.HDDeflater() 70 res = deflater.deflate([(b'foo', b'bar'), 101 deflater = nghttp2.HDDeflater() 103 data = deflater.deflate([(b'foo', b'bar'), 131 The default header table size for deflater. The initial value
|
/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 | 4908 NGHTTP2_EXTERN void nghttp2_hd_deflate_del(nghttp2_hd_deflater *deflater); 4934 nghttp2_hd_deflate_change_table_size(nghttp2_hd_deflater *deflater, 4964 NGHTTP2_EXTERN ssize_t nghttp2_hd_deflate_hd(nghttp2_hd_deflater *deflater, 4997 NGHTTP2_EXTERN ssize_t nghttp2_hd_deflate_hd_vec(nghttp2_hd_deflater *deflater, 5009 NGHTTP2_EXTERN size_t nghttp2_hd_deflate_bound(nghttp2_hd_deflater *deflater, 5021 size_t nghttp2_hd_deflate_get_num_table_entries(nghttp2_hd_deflater *deflater); 5035 nghttp2_hd_deflate_get_table_entry(nghttp2_hd_deflater *deflater, size_t idx); 5044 size_t nghttp2_hd_deflate_get_dynamic_table_size(nghttp2_hd_deflater *deflater); 5053 nghttp2_hd_deflate_get_max_dynamic_table_size(nghttp2_hd_deflater *deflater);
|