Home
last modified time | relevance | path

Searched refs:from_ne_bytes (Results 1 – 17 of 17) sorted by relevance

/external/rust/crates/rustc-hash/src/
Dlib.rs87 let read_usize = |bytes: &[u8]| u32::from_ne_bytes(bytes[..4].try_into().unwrap()); in write()
89 let read_usize = |bytes: &[u8]| u64::from_ne_bytes(bytes[..8].try_into().unwrap()); in write()
98 hash.add_to_hash(u32::from_ne_bytes(bytes[..4].try_into().unwrap()) as usize); in write()
102 hash.add_to_hash(u16::from_ne_bytes(bytes[..2].try_into().unwrap()) as usize); in write()
/external/rust/crates/quiche/src/
Drand.rs46 u64::from_ne_bytes(buf) in rand_u64()
/external/rust/crates/hashbrown/src/raw/
Dgeneric.rs30 GroupWord::from_ne_bytes([byte; Group::WIDTH]) in repeat()
/external/rust/crates/mio/src/sys/windows/
Dnet.rs70 *s_un.S_addr_mut() = u32::from_ne_bytes(addr.ip().octets()); in socket_addr()
/external/crosvm/devices/src/
Dpl030.rs87 let reg_val = u32::from_ne_bytes(*data_array); in write()
Dacpi.rs95 let val = u16::from_ne_bytes(val_arr); in write()
Dbat.rs482 let val = u32::from_ne_bytes(val_arr); in write()
/external/rust/crates/ring/src/
Dendian.rs93 Self($base::from_ne_bytes(bytes))
/external/rust/crates/mio/src/sys/unix/
Dnet.rs86 s_addr: u32::from_ne_bytes(addr.ip().octets()), in socket_addr()
/external/libchromeos-rs/src/
Dnet.rs46 s_addr: u32::from_ne_bytes(s.ip().octets()), in sockaddrv4_to_lib_c()
/external/crosvm/cros_async/src/
During_source.rs123 Ok(u64::from_ne_bytes(bytes[..].try_into().unwrap())) in read_u64()
319 u64::from_ne_bytes(val) in read_u64()
Dpoll_source.rs170 return Ok(u64::from_ne_bytes(buf)); in read_u64()
Dfd_executor.rs586 assert_eq!(u64::from_ne_bytes(buf), VALUE); in drop_before_completion()
/external/crosvm/devices/src/irqchip/
Dioapic.rs136 let val = u32::from_ne_bytes(data_arr); in write()
520 u32::from_ne_bytes(data) in read_reg()
/external/rust/crates/half/src/
Dbfloat.rs170 pub fn from_ne_bytes(bytes: [u8; 2]) -> bf16 { in from_ne_bytes() method
171 bf16::from_bits(u16::from_ne_bytes(bytes))
Dbinary16.rs469 pub fn from_ne_bytes(bytes: [u8; 2]) -> f16 { in from_ne_bytes() method
470 f16::from_bits(u16::from_ne_bytes(bytes))
/external/crosvm/sys_util/src/
Dnet.rs59 s_addr: u32::from_ne_bytes(s.ip().octets()), in sockaddrv4_to_lib_c()