Home
last modified time | relevance | path

Searched refs:as_mut_slice (Results 1 – 25 of 54) sorted by relevance

123

/external/rust/crates/protobuf/src/
Drepeated.rs94 pub fn as_mut_slice<'a>(&'a mut self) -> &'a mut [T] { in as_mut_slice() method
107 &mut self.as_mut_slice()[start..end] in slice_mut()
119 &mut self.as_mut_slice()[start..] in slice_from_mut()
131 &mut self.as_mut_slice()[..end] in slice_to_mut()
143 self.as_mut_slice().split_at_mut(mid) in split_at_mut()
161 self.as_mut_slice().last_mut() in last_mut()
246 self.as_mut_slice().reverse() in reverse()
265 self.as_mut_slice().iter_mut() in iter_mut()
274 self.as_mut_slice().sort_by(compare) in sort_by()
454 &mut self.as_mut_slice()[index] in index_mut()
[all …]
Dmisc.rs7 vec.as_mut_slice().as_mut_ptr().offset(vec.len() as isize), in remaining_capacity_as_slice_mut()
/external/rust/cxx/src/
Drust_slice.rs31 pub unsafe fn as_mut_slice<'a, T>(self) -> &'a mut [T] { in as_mut_slice() method
Dcxx_vector.rs127 pub fn as_mut_slice(self: Pin<&mut Self>) -> &mut [T] in as_mut_slice() function
/external/crosvm/rutabaga_gfx/src/
Drutabaga_2d.rs225 VolatileSlice::new(info_2d.host_mem.as_mut_slice()), in transfer_write()
265 [VolatileSlice::new(info_2d.host_mem.as_mut_slice())] in transfer_read()
/external/crosvm/devices/src/virtio/gpu/
Dudmabuf_bindings.rs33 pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { in as_mut_slice() method
Dudmabuf.rs51 unsafe { self.list.as_mut_slice(len) } in get_mut_slice()
/external/crosvm/sys_util/src/
Drand.rs85 rand_bytes(rand.as_mut_slice(), source)?; in rand_vec()
/external/crosvm/devices/src/
Ddirect_irq.rs97 let data = unsafe { irq_set[0].eventfd.as_mut_slice(count * u32_size) }; in plat_irq_ioctl()
/external/rust/crates/ring/tests/
Drsa_tests.rs107 .sign(alg, &rng, &msg, actual.as_mut_slice()) in test_signature_rsa_pkcs1_sign()
146 key_pair.sign(alg, &rng, &msg, actual.as_mut_slice())?; in test_signature_rsa_pss_sign()
/external/crosvm/data_model/src/
Dlib.rs111 fn as_mut_slice(&mut self) -> &mut [u8] { in as_mut_slice() method
/external/adhd/sof_sys/src/
Dbindings.rs33 pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { in as_mut_slice() method
/external/crosvm/x86_64/src/
Dsmbios.rs239 smbios_ep.as_mut_slice().copy_from_slice(&sme); in setup_smbios_from_file()
262 smbios_ep.as_mut_slice().copy_from_slice(&sme); in setup_smbios_from_file()
/external/rust/crates/vmm_vhost/src/vhost_kern/
Dvhost_binding.rs91 pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { in as_mut_slice() method
244 let regions = unsafe { self.buf[0].regions.as_mut_slice(index as usize + 1) }; in set_region()
/external/crosvm/gpu_display/src/
Dgpu_display_stub.rs29 VolatileSlice::new(self.bytes.as_mut_slice()) in as_volatile_slice()
/external/rust/crates/tinyvec/src/
Darrayvec.rs254 pub fn as_mut_slice(&mut self) -> &mut [A::Item] { in as_mut_slice() method
506 let target = &mut self.as_mut_slice()[index..]; in try_insert()
807 let moves = &mut self.as_mut_slice()[at..]; in split_off()
1012 let (dedup, _) = self.as_mut_slice().partition_dedup_by(same_bucket); in dedup_by()
Dslicevec.rs94 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice() method
291 self.as_mut_slice()[index..].rotate_right(1); in insert()
/external/crosvm/devices/src/virtio/snd/vios_backend/
Dshm_vios.rs126 .recv_with_fds(config.as_mut_slice(), &mut fds) in try_new()
496 .recv(msg.as_mut_slice()) in spawn_recv_thread()
720 .recv(status.as_mut_slice()) in recv_cmd_status()
/external/crosvm/vfio_sys/src/
Dplat.rs31 pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { in as_mut_slice() method
/external/crosvm/usb_sys/src/
Dlib.rs36 pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] { in as_mut_slice() method
/external/crosvm/devices/src/virtio/video/
Dmod.rs154 copy_config(data, 0, cfg.as_mut_slice(), offset); in read_config()
/external/crosvm/devices/src/usb/host_backend/
Dusb_endpoint.rs106 buffer.read(v.as_mut_slice()).map_err(Error::ReadBuffer)?; in get_transfer_buffer()
/external/rust/crates/smallvec/src/
Dtests.rs636 assert_eq!(iter.as_mut_slice(), &[1, 2, 3]); in test_into_iter_as_slice()
639 assert_eq!(iter.as_mut_slice(), &[2, 3]); in test_into_iter_as_slice()
642 assert_eq!(iter.as_mut_slice(), &[2]); in test_into_iter_as_slice()
/external/crosvm/kvm_sys/src/
Dlib.rs173 unsafe { self.entries.as_mut_slice(len) } in get_mut_slice()
/external/adhd/cras/client/libcras/src/
Daudio_socket.rs82 let rc = self.socket.read(message.as_mut_slice())?; in read_from_socket()

123