Home
last modified time | relevance | path

Searched refs:initial_size (Results 1 – 25 of 65) sorted by relevance

123

/third_party/grpc/src/core/lib/gprpp/
Darena.cc36 void* ArenaStorage(size_t initial_size) { in ArenaStorage() argument
39 initial_size = GPR_ROUND_UP_TO_ALIGNMENT_SIZE(initial_size); in ArenaStorage()
40 size_t alloc_size = base_size + initial_size; in ArenaStorage()
63 Arena* Arena::Create(size_t initial_size) { in Create() argument
64 return new (ArenaStorage(initial_size)) Arena(initial_size); in Create()
67 std::pair<Arena*, void*> Arena::CreateWithAlloc(size_t initial_size, in CreateWithAlloc() argument
72 new (ArenaStorage(initial_size)) Arena(initial_size, alloc_size); in CreateWithAlloc()
Darena.h47 static Arena* Create(size_t initial_size);
52 static std::pair<Arena*, void*> CreateWithAlloc(size_t initial_size,
98 explicit Arena(size_t initial_size, size_t initial_alloc = 0)
100 initial_zone_size_(initial_size) {} in total_used_()
/third_party/mesa3d/src/intel/vulkan/tests/
Dblock_pool_grow_first.c41 const uint32_t initial_size = block_size / 2; in main() local
45 anv_block_pool_init(&pool, &device, "test", 4096, initial_size); in main()
46 ASSERT(pool.size == initial_size); in main()
52 ASSERT(pool.size > initial_size); in main()
53 ASSERT(pool.size >= initial_size + block_size); in main()
58 ASSERT(padding == initial_size); in main()
59 ASSERT(offset == initial_size); in main()
/third_party/curl/src/
Dtool_cb_prg.c141 if(bar->initial_size < 0 || in tool_progress_cb()
142 ((CURL_OFF_T_MAX - bar->initial_size) < (dltotal + ultotal))) in tool_progress_cb()
145 total = dltotal + ultotal + bar->initial_size; in tool_progress_cb()
149 if(bar->initial_size < 0 || in tool_progress_cb()
150 ((CURL_OFF_T_MAX - bar->initial_size) < (dlnow + ulnow))) in tool_progress_cb()
153 point = dlnow + ulnow + bar->initial_size; in tool_progress_cb()
222 bar->initial_size = config->resume_from; in progressbarinit()
Dtool_cb_prg.h35 curl_off_t initial_size; member
/third_party/boost/libs/container/test/
Dmonotonic_buffer_resource_test.cpp144 const std::size_t initial_size = monotonic_buffer_resource::initial_next_buffer_size*2; in test_initial_size_constructor() local
149 monotonic_buffer_resource m(initial_size); in test_initial_size_constructor()
152 BOOST_TEST(m.next_buffer_size() >= initial_size); in test_initial_size_constructor()
162 monotonic_buffer_resource m(initial_size, &dmr); in test_initial_size_constructor()
165 BOOST_TEST(m.next_buffer_size() >= initial_size); in test_initial_size_constructor()
218 …explicit derived_from_monotonic_buffer_resource(std::size_t initial_size, memory_resource* upstrea… in derived_from_monotonic_buffer_resource()
219 : monotonic_buffer_resource(initial_size, upstream) in derived_from_monotonic_buffer_resource()
366 const std::size_t initial_size = 1u; in test_do_deallocate() local
368 derived_from_monotonic_buffer_resource dmbr(initial_size, &mrl); in test_do_deallocate()
410 const std::size_t initial_size = 1u; in test_release() local
[all …]
/third_party/boost/libs/beast/include/boost/beast/websocket/detail/
Dimpl_base.hpp307 std::size_t initial_size, in read_size_hint_pmd()
314 BOOST_ASSERT(initial_size > 0); in read_size_hint_pmd()
322 result = initial_size; in read_size_hint_pmd()
334 initial_size, clamp(rd_remain)); in read_size_hint_pmd()
452 std::size_t initial_size, in read_size_hint_pmd()
459 BOOST_ASSERT(initial_size > 0); in read_size_hint_pmd()
464 result = initial_size; in read_size_hint_pmd()
475 initial_size, clamp(rd_remain)); in read_size_hint_pmd()
/third_party/boost/boost/beast/websocket/detail/
Dimpl_base.hpp307 std::size_t initial_size, in read_size_hint_pmd()
314 BOOST_ASSERT(initial_size > 0); in read_size_hint_pmd()
322 result = initial_size; in read_size_hint_pmd()
334 initial_size, clamp(rd_remain)); in read_size_hint_pmd()
452 std::size_t initial_size, in read_size_hint_pmd()
459 BOOST_ASSERT(initial_size > 0); in read_size_hint_pmd()
464 result = initial_size; in read_size_hint_pmd()
475 initial_size, clamp(rd_remain)); in read_size_hint_pmd()
/third_party/flatbuffers/grpc/tests/
Dmessage_builder_test.cpp232 for (size_t initial_size = 4; initial_size <= 2048; initial_size *= 2) { in builder_move_ctor_conversion_before_finish_half_n_half_table_test() local
233 flatbuffers::FlatBufferBuilder fbb(initial_size); in builder_move_ctor_conversion_before_finish_half_n_half_table_test()
250 for (size_t initial_size = 1; initial_size <= 2048; initial_size += 1) { in builder_move_ctor_conversion_before_finish_test() local
251 flatbuffers::FlatBufferBuilder fbb(initial_size); in builder_move_ctor_conversion_before_finish_test()
/third_party/grpc/src/core/lib/gpr/
Darena.h37 inline gpr_arena* gpr_arena_create(size_t initial_size) { in gpr_arena_create() argument
38 return grpc_core::Arena::Create(initial_size); in gpr_arena_create()
/third_party/flatbuffers/java/com/google/flatbuffers/
DFlatBufferBuilder.java75 public FlatBufferBuilder(int initial_size, ByteBufferFactory bb_factory) { in FlatBufferBuilder() argument
76 this(initial_size, bb_factory, null, Utf8.getDefault()); in FlatBufferBuilder()
87 public FlatBufferBuilder(int initial_size, ByteBufferFactory bb_factory, in FlatBufferBuilder() argument
89 if (initial_size <= 0) { in FlatBufferBuilder()
90 initial_size = DEFAULT_BUFFER_SIZE; in FlatBufferBuilder()
98 bb = bb_factory.newByteBuffer(initial_size); in FlatBufferBuilder()
109 public FlatBufferBuilder(int initial_size) { in FlatBufferBuilder() argument
110 this(initial_size, HeapByteBufferFactory.INSTANCE, null, Utf8.getDefault()); in FlatBufferBuilder()
/third_party/boost/libs/container/src/
Dmonotonic_buffer_resource.cpp70 monotonic_buffer_resource::monotonic_buffer_resource(std::size_t initial_size, memory_resource* ups… in monotonic_buffer_resource() argument
78 this->increase_next_buffer_at_least_to(initial_size + !initial_size); in monotonic_buffer_resource()
/third_party/flatbuffers/ts/
Dbuilder.ts33 let initial_size: number;
36 initial_size = 1024;
38 initial_size = opt_initial_size;
45 this.bb = ByteBuffer.allocate(initial_size);
46 this.space = initial_size;
/third_party/boost/boost/property_map/
Dvector_property_map.hpp37 vector_property_map(unsigned initial_size, in vector_property_map() argument
39 : store(new std::vector<T>(initial_size)), index(index) in vector_property_map()
/third_party/gstreamer/gstreamer/libs/gst/base/
Dgstqueuearray.h37 GstQueueArray * gst_queue_array_new (guint initial_size);
84 guint initial_size);
Dgstqueuearray.c66 gst_queue_array_new_for_struct (gsize struct_size, guint initial_size) in gst_queue_array_new_for_struct() argument
74 array->size = initial_size; in gst_queue_array_new_for_struct()
75 array->array = g_malloc0 (struct_size * initial_size); in gst_queue_array_new_for_struct()
96 gst_queue_array_new (guint initial_size) in gst_queue_array_new() argument
100 array = gst_queue_array_new_for_struct (sizeof (gpointer), initial_size); in gst_queue_array_new()
/third_party/flatbuffers/php/
DFlatbufferBuilder.php89 public function __construct($initial_size) argument
91 if ($initial_size <= 0) {
92 $initial_size = 1;
94 $this->space = $initial_size;
95 $this->bb = $this->newByteBuffer($initial_size);
/third_party/jerryscript/jerry-core/ecma/base/
Decma-helpers-string.c2432 const lit_utf8_size_t initial_size = sizeof (ecma_ascii_string_t); in ecma_stringbuilder_create() local
2433 …gbuilder_header_t *header_p = (ecma_stringbuilder_header_t *) jmem_heap_alloc_block (initial_size); in ecma_stringbuilder_create()
2434 header_p->current_size = initial_size; in ecma_stringbuilder_create()
2436 jmem_stats_allocate_string_bytes (initial_size); in ecma_stringbuilder_create()
2452 const lit_utf8_size_t initial_size = string_size + (lit_utf8_size_t) sizeof (ecma_ascii_string_t); in ecma_stringbuilder_create_from() local
2454 …gbuilder_header_t *header_p = (ecma_stringbuilder_header_t *) jmem_heap_alloc_block (initial_size); in ecma_stringbuilder_create_from()
2455 header_p->current_size = initial_size; in ecma_stringbuilder_create_from()
2457 jmem_stats_allocate_string_bytes (initial_size); in ecma_stringbuilder_create_from()
2478 const lit_utf8_size_t initial_size = data_size + (lit_utf8_size_t) sizeof (ecma_ascii_string_t); in ecma_stringbuilder_create_raw() local
2480 …gbuilder_header_t *header_p = (ecma_stringbuilder_header_t *) jmem_heap_alloc_block (initial_size); in ecma_stringbuilder_create_raw()
[all …]
/third_party/gstreamer/gstreamer/gst/
Dgstatomicqueue.h48 GstAtomicQueue * gst_atomic_queue_new (guint initial_size) G_GNUC_MALLOC;
Dgstatomicqueue.c156 gst_atomic_queue_new (guint initial_size) in gst_atomic_queue_new() argument
166 queue->head_mem = queue->tail_mem = new_queue_mem (initial_size, 0); in gst_atomic_queue_new()
/third_party/ejdb/src/jbi/
Djbi_sorter_consumer.c157 static iwrc _jbi_scan_sorter_init(struct _JBSSC *ssc, off_t initial_size) { in _jbi_scan_sorter_init() argument
159 .initial_size = initial_size, in _jbi_scan_sorter_init()
/third_party/jerryscript/jerry-core/parser/regexp/
Dre-bytecode.c36 const size_t initial_size = sizeof (re_compiled_code_t); in re_initialize_regexp_bytecode() local
37 re_ctx_p->bytecode_start_p = jmem_heap_alloc_block (initial_size); in re_initialize_regexp_bytecode()
38 re_ctx_p->bytecode_size = initial_size; in re_initialize_regexp_bytecode()
/third_party/boost/libs/beast/include/boost/beast/websocket/impl/
Dstream.hpp124 std::size_t initial_size) const in read_size_hint()
127 initial_size, impl_->rd_done, in read_size_hint()
/third_party/boost/boost/beast/websocket/impl/
Dstream.hpp124 std::size_t initial_size) const in read_size_hint()
127 initial_size, impl_->rd_done, in read_size_hint()
/third_party/boost/boost/container/
Dvector.hpp321 …lloc_holder(vector_uninitialized_size_t, BOOST_FWD_REF(AllocConvertible) a, size_type initial_size) in vector_alloc_holder()
325 , m_size(static_cast<stored_size_type>(initial_size)) in vector_alloc_holder()
328 if(initial_size){ in vector_alloc_holder()
330 size_type final_cap = initial_size; in vector_alloc_holder()
331 m_start = this->allocation_command(allocate_new, initial_size, final_cap, reuse); in vector_alloc_holder()
337 vector_alloc_holder(vector_uninitialized_size_t, size_type initial_size) in vector_alloc_holder()
341 , m_size(static_cast<stored_size_type>(initial_size)) in vector_alloc_holder()
344 if(initial_size){ in vector_alloc_holder()
346 size_type final_cap = initial_size; in vector_alloc_holder()
347 m_start = this->allocation_command(allocate_new, initial_size, final_cap, reuse); in vector_alloc_holder()
[all …]

123