/third_party/node/deps/ngtcp2/nghttp3/lib/ |
H A D | nghttp3_balloc.c | 32 void nghttp3_balloc_init(nghttp3_balloc *balloc, size_t blklen, in nghttp3_balloc_init() argument 36 balloc->mem = mem; in nghttp3_balloc_init() 37 balloc->blklen = blklen; in nghttp3_balloc_init() 38 balloc->head = NULL; in nghttp3_balloc_init() 39 nghttp3_buf_wrap_init(&balloc->buf, (void *)"", 0); in nghttp3_balloc_init() 42 void nghttp3_balloc_free(nghttp3_balloc *balloc) { in nghttp3_balloc_free() argument 43 if (balloc == NULL) { in nghttp3_balloc_free() 47 nghttp3_balloc_clear(balloc); in nghttp3_balloc_free() 50 void nghttp3_balloc_clear(nghttp3_balloc *balloc) { in nghttp3_balloc_clear() argument 53 for (p = balloc in nghttp3_balloc_clear() 62 nghttp3_balloc_get(nghttp3_balloc *balloc, void **pbuf, size_t n) nghttp3_balloc_get() argument [all...] |
H A D | nghttp3_balloc.h | 63 * nghttp3_balloc_init initializes |balloc| with |blklen| which is the 66 void nghttp3_balloc_init(nghttp3_balloc *balloc, size_t blklen, 72 void nghttp3_balloc_free(nghttp3_balloc *balloc); 84 int nghttp3_balloc_get(nghttp3_balloc *balloc, void **pbuf, size_t n); 90 void nghttp3_balloc_clear(nghttp3_balloc *balloc);
|
H A D | nghttp3_objalloc.h | 46 nghttp3_balloc balloc; member 83 rv = nghttp3_balloc_get(&objalloc->balloc, (void **)&obj, \ 102 rv = nghttp3_balloc_get(&objalloc->balloc, (void **)&obj, len); \ 127 return nghttp3_mem_malloc(objalloc->balloc.mem, sizeof(TYPE)); \ 132 return nghttp3_mem_malloc(objalloc->balloc.mem, len); \ 137 nghttp3_mem_free(objalloc->balloc.mem, obj); \
|
H A D | nghttp3_objalloc.c | 30 nghttp3_balloc_init(&objalloc->balloc, blklen, mem); in nghttp3_objalloc_init() 35 nghttp3_balloc_free(&objalloc->balloc); in nghttp3_objalloc_free() 40 nghttp3_balloc_clear(&objalloc->balloc); in nghttp3_objalloc_clear()
|
/third_party/node/deps/ngtcp2/ngtcp2/lib/ |
H A D | ngtcp2_balloc.c | 31 void ngtcp2_balloc_init(ngtcp2_balloc *balloc, size_t blklen, in ngtcp2_balloc_init() argument 35 balloc->mem = mem; in ngtcp2_balloc_init() 36 balloc->blklen = blklen; in ngtcp2_balloc_init() 37 balloc->head = NULL; in ngtcp2_balloc_init() 38 ngtcp2_buf_init(&balloc->buf, (void *)"", 0); in ngtcp2_balloc_init() 41 void ngtcp2_balloc_free(ngtcp2_balloc *balloc) { in ngtcp2_balloc_free() argument 42 if (balloc == NULL) { in ngtcp2_balloc_free() 46 ngtcp2_balloc_clear(balloc); in ngtcp2_balloc_free() 49 void ngtcp2_balloc_clear(ngtcp2_balloc *balloc) { in ngtcp2_balloc_clear() argument 52 for (p = balloc in ngtcp2_balloc_clear() 61 ngtcp2_balloc_get(ngtcp2_balloc *balloc, void **pbuf, size_t n) ngtcp2_balloc_get() argument [all...] |
H A D | ngtcp2_balloc.h | 62 * ngtcp2_balloc_init initializes |balloc| with |blklen| which is the 65 void ngtcp2_balloc_init(ngtcp2_balloc *balloc, size_t blklen, 71 void ngtcp2_balloc_free(ngtcp2_balloc *balloc); 83 int ngtcp2_balloc_get(ngtcp2_balloc *balloc, void **pbuf, size_t n); 89 void ngtcp2_balloc_clear(ngtcp2_balloc *balloc);
|
H A D | ngtcp2_objalloc.h | 45 ngtcp2_balloc balloc; member 83 ngtcp2_balloc_get(&objalloc->balloc, (void **)&obj, sizeof(TYPE)); \ 101 rv = ngtcp2_balloc_get(&objalloc->balloc, (void **)&obj, len); \ 126 return ngtcp2_mem_malloc(objalloc->balloc.mem, sizeof(TYPE)); \ 131 return ngtcp2_mem_malloc(objalloc->balloc.mem, len); \ 136 ngtcp2_mem_free(objalloc->balloc.mem, obj); \
|
H A D | ngtcp2_objalloc.c | 29 ngtcp2_balloc_init(&objalloc->balloc, blklen, mem); in ngtcp2_objalloc_init() 34 ngtcp2_balloc_free(&objalloc->balloc); in ngtcp2_objalloc_free() 39 ngtcp2_balloc_clear(&objalloc->balloc); in ngtcp2_objalloc_clear()
|
/third_party/nghttp2/src/ |
H A D | shrpx_worker_test.cc | 53 BlockAllocator balloc(1024, 1024); in test_shrpx_worker_match_downstream_addr_group() 67 StringRef::from_lit("/"), groups, 255, balloc)); in test_shrpx_worker_match_downstream_addr_group() 72 StringRef::from_lit("/"), groups, 255, balloc)); in test_shrpx_worker_match_downstream_addr_group() 77 StringRef::from_lit("/alpha"), groups, 255, balloc)); in test_shrpx_worker_match_downstream_addr_group() 82 balloc)); in test_shrpx_worker_match_downstream_addr_group() 87 StringRef::from_lit("/alpha/bravo"), groups, 255, balloc)); in test_shrpx_worker_match_downstream_addr_group() 92 StringRef::from_lit("/Alpha/bravo"), groups, 255, balloc)); in test_shrpx_worker_match_downstream_addr_group() 97 balloc)); in test_shrpx_worker_match_downstream_addr_group() 102 balloc)); in test_shrpx_worker_match_downstream_addr_group() 109 balloc)); in test_shrpx_worker_match_downstream_addr_group() [all...] |
H A D | shrpx_http_test.cc | 42 BlockAllocator balloc(1024, 1024); in test_shrpx_http_create_forwarded() 46 http::create_forwarded(balloc, in test_shrpx_http_create_forwarded() 56 balloc, FORWARDED_FOR, StringRef::from_lit("alpha"), in test_shrpx_http_create_forwarded() 62 balloc, FORWARDED_BY | FORWARDED_FOR, in test_shrpx_http_create_forwarded() 68 balloc, FORWARDED_BY | FORWARDED_FOR, in test_shrpx_http_create_forwarded() 74 balloc, in test_shrpx_http_create_forwarded() 95 BlockAllocator balloc(1024, 1024); in test_shrpx_http_create_affinity_cookie() 98 c = http::create_affinity_cookie(balloc, StringRef::from_lit("cookie-val"), in test_shrpx_http_create_affinity_cookie() 103 c = http::create_affinity_cookie(balloc, StringRef::from_lit("alpha"), in test_shrpx_http_create_affinity_cookie() 108 c = http::create_affinity_cookie(balloc, StringRe in test_shrpx_http_create_affinity_cookie() [all...] |
H A D | util_test.cc | 117 BlockAllocator balloc(4096, 4096); in test_util_to_base64() 120 util::to_base64(balloc, StringRef::from_lit("AAA--B_"))); in test_util_to_base64() 122 util::to_base64(balloc, StringRef::from_lit("AAA--B_B"))); in test_util_to_base64() 136 BlockAllocator balloc(4096, 4096); in test_util_percent_encode_token() 138 util::percent_encode_token(balloc, StringRef::from_lit("h2"))); in test_util_percent_encode_token() 140 util::percent_encode_token(balloc, StringRef::from_lit("h3~"))); in test_util_percent_encode_token() 142 util::percent_encode_token(balloc, StringRef::from_lit("100%"))); in test_util_percent_encode_token() 144 util::percent_encode_token(balloc, StringRef::from_lit("http 2"))); in test_util_percent_encode_token() 160 BlockAllocator balloc(1024, 1024); in test_util_percent_decode() 163 balloc, StringRe in test_util_percent_decode() [all...] |
H A D | shrpx_config_test.cc | 41 BlockAllocator balloc(4096, 4096); in test_shrpx_config_parse_header() 43 auto p = parse_header(balloc, StringRef::from_lit("a: b")); in test_shrpx_config_parse_header() 47 p = parse_header(balloc, StringRef::from_lit("a: b")); in test_shrpx_config_parse_header() 51 p = parse_header(balloc, StringRef::from_lit(":a: b")); in test_shrpx_config_parse_header() 54 p = parse_header(balloc, StringRef::from_lit("a: :b")); in test_shrpx_config_parse_header() 58 p = parse_header(balloc, StringRef::from_lit(": b")); in test_shrpx_config_parse_header() 61 p = parse_header(balloc, StringRef::from_lit("alpha: bravo charlie")); in test_shrpx_config_parse_header() 65 p = parse_header(balloc, StringRef::from_lit("a,: b")); in test_shrpx_config_parse_header() 68 p = parse_header(balloc, StringRef::from_lit("a: b\x0a")); in test_shrpx_config_parse_header() 73 BlockAllocator balloc(409 in test_shrpx_config_parse_log_format() [all...] |
H A D | base64_test.cc | 62 BlockAllocator balloc(4096, 4096); in test_base64_decode() 67 CU_ASSERT("\xff" == base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode() 74 base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode() 81 base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode() 88 base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode() 95 CU_ASSERT("" == base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode() 103 CU_ASSERT("" == base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode() 110 CU_ASSERT("" == base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode() 117 CU_ASSERT("" == base64::decode(balloc, std::begin(in), std::end(in))); in test_base64_decode()
|
H A D | shrpx_config.cc | 358 HeaderRefs::value_type parse_header(BlockAllocator &balloc, in parse_header() argument 371 make_byte_ref(balloc, std::distance(std::begin(optarg), colon) + 1); in parse_header() 379 make_string_ref(balloc, StringRef{value, std::end(optarg)})); in parse_header() 450 altsvc.protocol_id = make_string_ref(config->balloc, tokens[0]); in parse_altsvc() 453 altsvc.service = make_string_ref(config->balloc, tokens[1]); in parse_altsvc() 457 altsvc.host = make_string_ref(config->balloc, tokens[2]); in parse_altsvc() 462 altsvc.origin = make_string_ref(config->balloc, tokens[3]); in parse_altsvc() 467 altsvc.params = make_string_ref(config->balloc, tokens[4]); in parse_altsvc() 699 std::vector<LogFragment> parse_log_format(BlockAllocator &balloc, in parse_log_format() argument 765 make_string_ref(balloc, StringRe in parse_log_format() [all...] |
H A D | shrpx_http.h | 44 StringRef create_error_html(BlockAllocator &balloc, unsigned int status_code); 59 StringRef create_forwarded(BlockAllocator &balloc, int params, 73 StringRef create_affinity_cookie(BlockAllocator &balloc, const StringRef &name, 83 StringRef create_altsvc_header_value(BlockAllocator &balloc,
|
H A D | shrpx_http.cc | 38 StringRef create_error_html(BlockAllocator &balloc, unsigned int http_status) { in create_error_html() argument 48 auto status_string = http2::stringify_status(balloc, http_status); in create_error_html() 52 balloc, StringRef::from_lit(R"(<!DOCTYPE html><html lang="en"><title>)"), in create_error_html() 60 StringRef create_forwarded(BlockAllocator &balloc, int params, in create_forwarded() argument 77 auto iov = make_byte_ref(balloc, len + 1); in create_forwarded() 176 StringRef create_affinity_cookie(BlockAllocator &balloc, const StringRef &name, in create_affinity_cookie() argument 191 auto iov = make_byte_ref(balloc, len + 1); in create_affinity_cookie() 223 StringRef create_altsvc_header_value(BlockAllocator &balloc, in create_altsvc_header_value() argument 249 auto iov = make_byte_ref(balloc, len + 2); in create_altsvc_header_value()
|
H A D | shrpx_https_upstream.cc | 142 auto &balloc = downstream->get_block_allocator(); in htp_uricb() local 164 concat_string_ref(balloc, req.authority, StringRef{data, len}); in htp_uricb() 166 req.path = concat_string_ref(balloc, req.path, StringRef{data, len}); in htp_uricb() 257 void rewrite_request_host_path_from_uri(BlockAllocator &balloc, Request &req, in rewrite_request_host_path_from_uri() argument 276 auto iovec = make_byte_ref(balloc, authoritylen + 1); in rewrite_request_host_path_from_uri() 323 path = concat_string_ref(balloc, path, StringRef::from_lit("?"), in rewrite_request_host_path_from_uri() 328 req.path = http2::rewrite_clean_path(balloc, path); in rewrite_request_host_path_from_uri() 344 auto &balloc = downstream->get_block_allocator(); in htp_hdrs_completecb() local 347 kv.value = util::rstrip(balloc, kv.value); in htp_hdrs_completecb() 449 req.path = http2::rewrite_clean_path(balloc, re in htp_hdrs_completecb() 591 auto &balloc = downstream->get_block_allocator(); htp_msg_completecb() local 981 auto &balloc = downstream->get_block_allocator(); send_reply() local 1061 auto &balloc = downstream->get_block_allocator(); error_reply() local 1125 auto &balloc = downstream->get_block_allocator(); on_downstream_header_complete() local 1424 auto &balloc = downstream->get_block_allocator(); redirect_to_https() local [all...] |
H A D | http2.h | 103 StringRef stringify_status(BlockAllocator &balloc, unsigned int status_code); 286 StringRef rewrite_location_uri(BlockAllocator &balloc, const StringRef &uri, 380 StringRef path_join(BlockAllocator &balloc, const StringRef &base_path, 404 StringRef normalize_path(BlockAllocator &balloc, const StringRef &path, 410 StringRef normalize_path_colon(BlockAllocator &balloc, const StringRef &path, 415 StringRef rewrite_clean_path(BlockAllocator &balloc, const StringRef &src); 427 int construct_push_component(BlockAllocator &balloc, StringRef &scheme, 432 StringRef copy_lower(BlockAllocator &balloc, const StringRef &src);
|
H A D | shrpx_mruby_module_response.cc | 111 auto &balloc = downstream->get_block_allocator(); in response_mod_header() local 125 make_string_ref(balloc, StringRef{RSTRING_PTR(key), in response_mod_header() 158 make_string_ref(balloc, in response_mod_header() 166 make_string_ref(balloc, in response_mod_header() 210 auto &balloc = downstream->get_block_allocator(); in response_return() local 243 auto content_length = util::make_string_ref_uint(balloc, vallen); in response_return() 260 make_string_ref(balloc, lgconf->tstamp->time_http), in response_return() 299 auto &balloc = downstream->get_block_allocator(); in response_send_info() local 317 balloc, in response_send_info() 334 make_string_ref(balloc, in response_send_info() [all...] |
H A D | shrpx_mruby_module_env.cc | 176 auto &balloc = downstream->get_block_allocator(); in env_get_tls_client_fingerprint_md() local 177 auto f = util::format_hex(balloc, in env_get_tls_client_fingerprint_md() 217 auto &balloc = downstream->get_block_allocator(); in env_get_tls_client_subject_name() local 218 auto name = tls::get_x509_subject_name(balloc, x); in env_get_tls_client_subject_name() 247 auto &balloc = downstream->get_block_allocator(); in env_get_tls_client_issuer_name() local 248 auto name = tls::get_x509_issuer_name(balloc, x); in env_get_tls_client_issuer_name() 277 auto &balloc = downstream->get_block_allocator(); in env_get_tls_client_serial() local 278 auto sn = tls::get_x509_serial(balloc, x); in env_get_tls_client_serial() 407 auto &balloc = downstream->get_block_allocator(); in env_get_tls_session_id() local 408 auto id = util::format_hex(balloc, StringRe in env_get_tls_session_id() [all...] |
H A D | shrpx_mruby_module_request.cc | 120 auto &balloc = downstream->get_block_allocator(); in request_set_authority() local 132 make_string_ref(balloc, StringRef{authority, static_cast<size_t>(n)}); in request_set_authority() 154 auto &balloc = downstream->get_block_allocator(); in request_set_scheme() local 166 make_string_ref(balloc, StringRef{scheme, static_cast<size_t>(n)}); in request_set_scheme() 188 auto &balloc = downstream->get_block_allocator(); in request_set_path() local 197 make_string_ref(balloc, StringRef{path, static_cast<size_t>(pathlen)}); in request_set_path() 217 auto &balloc = downstream->get_block_allocator(); in request_mod_header() local 233 make_string_ref(balloc, StringRef{RSTRING_PTR(key), in request_mod_header() 266 make_string_ref(balloc, in request_mod_header() 274 make_string_ref(balloc, in request_mod_header() [all...] |
H A D | shrpx_downstream.h | 65 FieldStore(BlockAllocator &balloc, size_t headers_initial_capacity) in FieldStore() argument 67 balloc_(balloc), in FieldStore() 155 Request(BlockAllocator &balloc) in Request() 156 : fs(balloc, 16), in Request() 237 Response(BlockAllocator &balloc) in Response() 238 : fs(balloc, 32), in Response()
|
H A D | shrpx_api_downstream_connection.cc | 109 auto &balloc = downstream_->get_block_allocator(); in send_reply() local 133 auto buf = make_byte_ref(balloc, buflen); in send_reply() 145 auto content_length = util::make_string_ref_uint(balloc, buf.len); in send_reply() 283 auto &balloc = downstream_->get_block_allocator(); in error_method_not_allowed() local 285 auto iov = make_byte_ref(balloc, len + 1); in error_method_not_allowed() 437 auto &balloc = downstream_->get_block_allocator(); in handle_configrevision() local 445 balloc, StringRef::from_lit(R"(,"data":{"configRevision":)"), in handle_configrevision() 446 util::make_string_ref_uint(balloc, config->config_revision), in handle_configrevision()
|
H A D | http2.cc | 144 StringRef stringify_status(BlockAllocator &balloc, unsigned int status_code) { in stringify_status() argument 246 return util::make_string_ref_uint(balloc, status_code); in stringify_status() 631 StringRef rewrite_location_uri(BlockAllocator &balloc, const StringRef &uri, in rewrite_location_uri() argument 667 auto iov = make_byte_ref(balloc, len + 1); in rewrite_location_uri() 1380 BlockAllocator balloc(1024, 1024); 1382 return path_join(balloc, base_path, base_query, rel_path, rel_query).str(); 1622 int construct_push_component(BlockAllocator &balloc, StringRef &scheme, 1661 auto iov = make_byte_ref(balloc, len + 1); 1686 path = http2::path_join(balloc, base, StringRef{}, rel, relq); 1728 StringRef path_join(BlockAllocator &balloc, cons [all...] |
/third_party/jerryscript/targets/curie_bsp/jerry_app/quark/ |
H A D | main.c | 52 jerry_char_t *err_str_buf = (jerry_char_t *) balloc (err_str_size, NULL); in jerry_resolve_error() 80 size_t *str_lens = (size_t *) balloc ((argc - 2) * sizeof(size_t), &err); in eval_jerry_script() 93 char *buffer = (char *) balloc (str_total_length, &err); in eval_jerry_script()
|