Searched refs:new_with_capacity (Results 1 – 5 of 5) sorted by relevance
158 let builder = &mut flatbuffers::FlatBufferBuilder::new_with_capacity(1<<20); in create_string_10()173 let builder = &mut flatbuffers::FlatBufferBuilder::new_with_capacity(1<<20); in create_string_100()191 let builder = &mut flatbuffers::FlatBufferBuilder::new_with_capacity(1<<20); in create_byte_vector_100_naive()209 let builder = &mut flatbuffers::FlatBufferBuilder::new_with_capacity(1<<20); in create_byte_vector_100_optimal()
62 Self::new_with_capacity(0) in new()69 pub fn new_with_capacity(size: usize) -> Self { in new_with_capacity() method696 Self::new_with_capacity(0) in default()
35 let mut builder = flatbuffers::FlatBufferBuilder::new_with_capacity(1024); in main()
221 flatbuffers::FlatBufferBuilder::new_with_capacity(flatbuffers::FLATBUFFERS_MAX_BUFFER_SIZE+1); in builder_abort_with_greater_than_maximum_buffer_size()2325 let mut b = flatbuffers::FlatBufferBuilder::new_with_capacity(12); in layout_03b_11xbyte_vector_matches_builder_size()
652 let mut builder = flatbuffers::FlatBufferBuilder::new_with_capacity(1024);