Home
last modified time | relevance | path

Searched refs:with_capacity (Results 1 – 25 of 28) sorted by relevance

12

/external/crosvm/p9/src/protocol/
Dwire_format.rs90 let mut result = String::with_capacity(len as usize); in decode()
121 let mut result = Vec::with_capacity(len as usize); in decode()
186 let mut buf = Vec::with_capacity(len as usize); in decode()
247 let mut buf = Vec::with_capacity(8); in integer_encode()
312 let mut buf = Vec::with_capacity(len + mem::size_of::<u16>()); in string_encode()
323 let mut buf = Vec::with_capacity(exp.len()); in string_encode()
418 Vec::with_capacity(values.len() * mem::size_of::<u32>() + mem::size_of::<u16>()); in vector_encode()
430 let mut actual: Vec<u8> = Vec::with_capacity(expected.len()); in vector_encode()
451 Vec::with_capacity(expected.len() * mem::size_of::<u32>() + mem::size_of::<u16>()); in vector_decode()
474 Vec::with_capacity(values.len() * mem::size_of::<u8>() + mem::size_of::<u32>()); in data_encode()
[all …]
/external/crosvm/qcow/src/
Dqcow_raw_file.rs69 let mut buffer = BufWriter::with_capacity(table.len() * size_of::<u64>(), &self.file); in write_pointer_table()
94 let mut buffer = BufWriter::with_capacity(table.len() * size_of::<u16>(), &self.file); in write_refcount_block()
Dvec_cache.rs96 map: HashMap::with_capacity(capacity), in new()
/external/swiftshader/third_party/llvm-7.0/llvm/test/DebugInfo/
Dcross-cu-scope.ll46 …istinct !DISubprogram(name: "with_capacity<alloc::string::String>", linkageName: "_ZN5alloc7raw_ve…
/external/crosvm/sys_util/src/
Dsock_ctrl_msg.rs78 fn with_capacity(capacity: usize) -> CmsgBuffer { in with_capacity() method
108 let mut cmsg_buffer = CmsgBuffer::with_capacity(cmsg_capacity); in raw_sendmsg()
160 let mut cmsg_buffer = CmsgBuffer::with_capacity(cmsg_capacity); in raw_recvmsg()
Dstruct_util.rs39 let mut out: Vec<T> = Vec::with_capacity(len); in read_struct_slice()
Dpoll.rs674 let mut evts = Vec::with_capacity(EVT_COUNT); in poll_context_overflow()
/external/rust/crates/syn/1.0.7/src/
Dbigint.rs14 let mut repr = String::with_capacity(self.digits.len()); in to_string()
Dpunctuated.rs410 let mut elements = Vec::with_capacity(self.len()); in into_iter()
/external/crosvm/src/plugin/
Dprocess.rs150 let mut vcpu_pipes: Vec<VcpuPipe> = Vec::with_capacity(cpu_count as usize); in new()
155 Vec::with_capacity(cpu_count as usize); in new()
394 let mut routes = Vec::with_capacity(irq_routing.routes.len()); in handle_set_irq_routing()
Dvcpu.rs464 let mut msr_entries = Vec::with_capacity(entry_indices.len()); in handle_request()
Dmod.rs624 let mut vcpu_handles = Vec::with_capacity(vcpu_count as usize); in run_config()
/external/crosvm/io_jail/src/
Dlib.rs512 let mut args_cstr = Vec::with_capacity(args.len()); in run()
513 let mut args_array = Vec::with_capacity(args.len()); in run()
/external/crosvm/p9/src/
Dserver.rs355 let mut mds = Vec::with_capacity(walk.wnames.len()); in walk()
409 let mut buf = Data(Vec::with_capacity(capacity as usize)); in read()
786 let mut cursor = Cursor::new(Vec::with_capacity(count as usize)); in readdir()
/external/crosvm/devices/src/virtio/
Dp9.rs313 let mut cfg = Vec::with_capacity(tag.len() + mem::size_of::<u16>()); in new()
/external/crosvm/devices/src/virtio/input/
Devent_source.rs414 let mut ret: Vec<input_event> = Vec::with_capacity(count); in instantiate_input_events()
/external/flatbuffers/rust/flatbuffers/src/
Dbuilder.rs275 …WIPOffset<&str>; N_SMALLVEC_STRING_VECTOR_CAPACITY]> = smallvec::SmallVec::with_capacity(xs.len()); in create_vector_of_strings()
/external/crosvm/aarch64/src/
Dlib.rs216 let mut vcpus = Vec::with_capacity(vcpu_count as usize); in build_vm()
/external/rust/crates/syn/0.15.42/src/
Dpunctuated.rs417 let mut elements = Vec::with_capacity(self.len()); in into_iter()
/external/crosvm/devices/src/virtio/gpu/
Dbackend.rs828 let mut plane_info = Vec::with_capacity(buffer.num_planes()); in resource_create_3d()
Dmod.rs151 let mut iovecs = Vec::with_capacity(entry_count); in process_gpu_command()
/external/crosvm/x86_64/src/
Dlib.rs329 let mut vcpus = Vec::with_capacity(vcpu_count as usize); in build_vm()
/external/rust/crates/proc-macro2/src/
Dfallback.rs729 let mut text = String::with_capacity(t.len() + 2); in string()
/external/flatbuffers/tests/rust_usage_test/tests/
Dintegration_test.rs804 let mut result_vec: Vec<T> = Vec::with_capacity(got.len()); in prop()
1243 let mut got3: Vec<T> = Vec::with_capacity(got2.len()); in prop()
/external/crosvm/kvm/src/
Dlib.rs39 let mut v = Vec::with_capacity(rounded_size); in vec_with_size_in_bytes()

12