Searched refs:from_mut_slice (Results 1 – 10 of 10) sorted by relevance
/external/crosvm/data_model/src/ |
D | lib.rs | 57 fn from_mut_slice(data: &mut [u8]) -> Option<&mut Self> { in from_mut_slice() method 159 let from_aligned_mut = $T::from_mut_slice(aligned_v); 172 let from_unaligned_mut = $T::from_mut_slice(unaligned_v);
|
/external/rust/crates/serde_cbor/tests/ |
D | std_types.rs | 8 use serde_cbor::de::from_mut_slice; 42 let parsed: f64 = from_mut_slice(&mut serialized[..]).unwrap(); 73 let parsed: $ty = from_mut_slice(&mut serialized[..]).unwrap(); 76 from_mut_slice(&mut packed[..]).expect("parsing packed");
|
D | de.rs | 202 _test_multiple_indefinite_strings(de::from_mut_slice(input.to_vec().as_mut())); in test_multiple_indefinite_strings() 370 let mut it = Deserializer::from_mut_slice(mutcopy.as_mut()).into_iter::<Value>(); in stream_deserializer_eof_in_indefinite()
|
/external/rust/crates/nix/test/sys/ |
D | test_aio.rs | 27 let aiocb = AioCb::from_mut_slice( 1001, in test_accessors() 159 let mut rcb = AioCb::from_mut_slice( f.as_raw_fd(), in test_aio_suspend() 198 let mut aiocb = AioCb::from_mut_slice( f.as_raw_fd(), in test_read() 225 let mut aiocb = AioCb::from_mut_slice( f.as_raw_fd(), in test_read_error() 244 let mut aiocb = AioCb::from_mut_slice( f.as_raw_fd(), in test_read_into_mut_slice() 515 let rcb = AioCb::from_mut_slice( f.as_raw_fd(), in test_liocb_listio_wait() 562 let rcb = AioCb::from_mut_slice( f.as_raw_fd(), in test_liocb_listio_nowait() 618 let rcb = AioCb::from_mut_slice( f.as_raw_fd(), in test_liocb_listio_signal()
|
D | test_uio.rs | 73 iovecs.push(IoVec::from_mut_slice(&mut v[..])); in test_readv() 190 |buf| IoVec::from_mut_slice(&mut buf[..])).collect(); in test_preadv() 228 &[IoVec::from_mut_slice(&mut buf)], in test_process_vm_readv()
|
D | test_socket.rs | 423 [IoVec::from_mut_slice(&mut buf[..])] in udp_recvmmsg() 495 [IoVec::from_mut_slice(&mut buf[..])] in udp_recvmmsg_dontwait_short_read() 528 let iov = [IoVec::from_mut_slice(&mut buf[..])]; in test_recvmsg_ebadf() 561 let iov = [IoVec::from_mut_slice(&mut buf[..])]; in test_scm_rights() 870 let iovec = [IoVec::from_mut_slice(&mut buf)]; in test_scm_rights_single_cmsg_multiple_fds() 925 let iov = [IoVec::from_mut_slice(&mut buf[..])]; in test_sendmsg_empty_cmsgs() 974 let iov = [IoVec::from_mut_slice(&mut buf[..])]; in test_scm_credentials() 1062 let iov = [IoVec::from_mut_slice(&mut buf[..])]; in test_impl_scm_credentials_and_rights() 1256 let iovec = [IoVec::from_mut_slice(&mut buf)]; in test_recv_ipv4pktinfo() 1347 let iovec = [IoVec::from_mut_slice(&mut buf)]; in test_recvif() [all …]
|
/external/rust/crates/nix/src/sys/ |
D | uio.rs | 196 pub fn from_mut_slice(buf: &'a mut [u8]) -> IoVec<&'a mut [u8]> { in from_mut_slice() method
|
D | aio.rs | 317 pub fn from_mut_slice(fd: RawFd, offs: off_t, buf: &'a mut [u8], in from_mut_slice() method
|
/external/rust/crates/serde_cbor/src/ |
D | de.rs | 64 pub fn from_mut_slice<'a, T>(slice: &'a mut [u8]) -> Result<T> in from_mut_slice() function 68 let mut deserializer = Deserializer::from_mut_slice(slice); in from_mut_slice() 164 pub fn from_mut_slice(bytes: &'a mut [u8]) -> Deserializer<MutSliceRead<'a>> { in from_mut_slice() method
|
/external/crosvm/devices/src/usb/xhci/ |
D | xhci_abi.rs | 691 T::from_mut_slice(self.as_mut_slice()).ok_or(Error::CannotCastTrb) in cast_mut() 715 T::from_mut_slice(self.as_mut_slice()).ok_or(Error::CannotCastTrb) in checked_mut_cast()
|