Home
last modified time | relevance | path

Searched refs:initial_capacity (Results 1 – 18 of 18) sorted by relevance

/external/vixl/test/
Dtest-code-buffer.cc86 const size_t initial_capacity = 1234; in TEST() local
87 CodeBuffer buffer(initial_capacity); in TEST()
90 for (size_t space = 0; space < initial_capacity; space++) { in TEST()
92 VIXL_CHECK(buffer.GetCapacity() == initial_capacity); in TEST()
96 buffer.EnsureSpaceFor(initial_capacity + 1); in TEST()
97 VIXL_CHECK(buffer.GetCapacity() > initial_capacity); in TEST()
/external/rust/crates/grpcio-sys/grpc/src/core/ext/transport/chttp2/transport/
Dstream_map.cc29 size_t initial_capacity) { in grpc_chttp2_stream_map_init() argument
30 GPR_DEBUG_ASSERT(initial_capacity > 1); in grpc_chttp2_stream_map_init()
32 static_cast<uint32_t*>(gpr_malloc(sizeof(uint32_t) * initial_capacity)); in grpc_chttp2_stream_map_init()
34 static_cast<void**>(gpr_malloc(sizeof(void*) * initial_capacity)); in grpc_chttp2_stream_map_init()
37 map->capacity = initial_capacity; in grpc_chttp2_stream_map_init()
Dstream_map.h40 size_t initial_capacity);
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dstream_map.cc29 size_t initial_capacity) { in grpc_chttp2_stream_map_init() argument
30 GPR_ASSERT(initial_capacity > 1); in grpc_chttp2_stream_map_init()
32 static_cast<uint32_t*>(gpr_malloc(sizeof(uint32_t) * initial_capacity)); in grpc_chttp2_stream_map_init()
34 static_cast<void**>(gpr_malloc(sizeof(void*) * initial_capacity)); in grpc_chttp2_stream_map_init()
37 map->capacity = initial_capacity; in grpc_chttp2_stream_map_init()
Dstream_map.h41 size_t initial_capacity);
/external/mesa3d/src/util/
Dstring_buffer.c47 _mesa_string_buffer_create(void *mem_ctx, uint32_t initial_capacity) in _mesa_string_buffer_create() argument
56 str->capacity = initial_capacity ? initial_capacity : 32; in _mesa_string_buffer_create()
Dstring_buffer.h45 _mesa_string_buffer_create(void *mem_ctx, uint32_t initial_capacity);
/external/tflite-support/tensorflow_lite_support/cc/utils/
Djni_utils.h60 jint initial_capacity = static_cast<jint>(results.size()); in ConvertVectorToArrayList() local
62 env->NewObject(array_list_class, array_list_ctor, initial_capacity); in ConvertVectorToArrayList()
/external/rust/crates/rusqlite/src/
Dcache.rs188 let initial_capacity = cache.capacity(); in test_cache() localVariable
190 assert!(initial_capacity > 0); in test_cache()
215 assert_eq!(initial_capacity, cache.capacity()); in test_cache()
/external/rust/crates/quiche/deps/boringssl/src/crypto/bytestring/
Dcbb.c50 int CBB_init(CBB *cbb, size_t initial_capacity) { in CBB_init() argument
53 uint8_t *buf = OPENSSL_malloc(initial_capacity); in CBB_init()
54 if (initial_capacity > 0 && buf == NULL) { in CBB_init()
58 if (!cbb_init(cbb, buf, initial_capacity)) { in CBB_init()
/external/boringssl/src/crypto/bytestring/
Dcbb.c50 int CBB_init(CBB *cbb, size_t initial_capacity) { in CBB_init() argument
53 uint8_t *buf = OPENSSL_malloc(initial_capacity); in CBB_init()
54 if (initial_capacity > 0 && buf == NULL) { in CBB_init()
58 if (!cbb_init(cbb, buf, initial_capacity)) { in CBB_init()
/external/perfetto/include/perfetto/ext/base/
Dcircular_queue.h173 CircularQueue(size_t initial_capacity = 1024) { Grow(initial_capacity); }
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common.h500 void Initialize(uptr initial_capacity) { in Initialize() argument
501 capacity_ = Max(initial_capacity, (uptr)1); in Initialize()
582 explicit InternalMmapVector(uptr initial_capacity) { in InternalMmapVector() argument
583 InternalMmapVectorNoCtor<T>::Initialize(initial_capacity); in InternalMmapVector()
/external/crosvm/hypervisor/src/
Dx86_64.rs132 pub fn new(initial_capacity: usize) -> Self { in new()
134 cpu_id_entries: Vec::with_capacity(initial_capacity), in new()
/external/rust/crates/quiche/deps/boringssl/src/include/openssl/
Dbytestring.h379 OPENSSL_EXPORT int CBB_init(CBB *cbb, size_t initial_capacity);
/external/boringssl/src/include/openssl/
Dbytestring.h394 OPENSSL_EXPORT int CBB_init(CBB *cbb, size_t initial_capacity);
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_common.h470 void Initialize(uptr initial_capacity) { in Initialize() argument
474 reserve(initial_capacity); in Initialize()
/external/crosvm/hypervisor/src/kvm/
Dx86_64.rs30 initial_capacity: usize, in get_cpuid_with_initial_capacity()
32 let mut entries: usize = initial_capacity; in get_cpuid_with_initial_capacity()