Home
last modified time | relevance | path

Searched refs:new_cap (Results 1 – 6 of 6) sorted by relevance

/external/boringssl/src/ssl/
Dssl_buffer.cc47 bool SSLBuffer::EnsureCap(size_t header_len, size_t new_cap) { in EnsureCap() argument
48 if (new_cap > 0xffff) { in EnsureCap()
53 if (cap_ >= new_cap) { in EnsureCap()
62 uint8_t *new_buf = (uint8_t *)malloc(new_cap + SSL3_ALIGN_PAYLOAD - 1); in EnsureCap()
79 cap_ = new_cap; in EnsureCap()
Ds3_both.cc150 size_t new_cap = ssl->s3->pending_flight->length + max_out; in add_record_to_flight() local
151 if (max_out < in.size() || new_cap < max_out) { in add_record_to_flight()
157 if (!BUF_MEM_reserve(ssl->s3->pending_flight.get(), new_cap) || in add_record_to_flight()
Dinternal.h1116 bool EnsureCap(size_t header_len, size_t new_cap);
/external/boringssl/src/crypto/
Dcpu-arm-linux.c86 size_t new_cap = cap * 2; in read_file() local
87 if (new_cap < cap) { in read_file()
90 char *new_buf = OPENSSL_realloc(buf, new_cap); in read_file()
95 cap = new_cap; in read_file()
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dhpack_table.cc232 static void rebuild_ents(grpc_chttp2_hptbl* tbl, uint32_t new_cap) { in rebuild_ents() argument
234 static_cast<grpc_mdelem*>(gpr_malloc(sizeof(*ents) * new_cap)); in rebuild_ents()
242 tbl->cap_entries = new_cap; in rebuild_ents()
285 uint32_t new_cap = GPR_MAX(tbl->max_entries, 16u); in grpc_chttp2_hptbl_set_current_table_size() local
286 if (new_cap != tbl->cap_entries) { in grpc_chttp2_hptbl_set_current_table_size()
287 rebuild_ents(tbl, new_cap); in grpc_chttp2_hptbl_set_current_table_size()
Dhpack_encoder.cc621 static void rebuild_elems(grpc_chttp2_hpack_compressor* c, uint32_t new_cap) { in rebuild_elems() argument
623 static_cast<uint16_t*>(gpr_malloc(sizeof(*table_elem_size) * new_cap)); in rebuild_elems()
626 memset(table_elem_size, 0, sizeof(*table_elem_size) * new_cap); in rebuild_elems()
627 GPR_ASSERT(c->table_elems <= new_cap); in rebuild_elems()
631 table_elem_size[ofs % new_cap] = in rebuild_elems()
635 c->cap_table_elems = new_cap; in rebuild_elems()
654 uint32_t new_cap = GPR_MAX(c->max_table_elems, 16); in grpc_chttp2_hpack_compressor_set_max_table_size() local
655 if (new_cap != c->cap_table_elems) { in grpc_chttp2_hpack_compressor_set_max_table_size()
656 rebuild_elems(c, new_cap); in grpc_chttp2_hpack_compressor_set_max_table_size()