Searched refs:from_ne_bytes (Results 1 – 17 of 17) sorted by relevance
87 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()
46 u64::from_ne_bytes(buf) in rand_u64()
30 GroupWord::from_ne_bytes([byte; Group::WIDTH]) in repeat()
70 *s_un.S_addr_mut() = u32::from_ne_bytes(addr.ip().octets()); in socket_addr()
87 let reg_val = u32::from_ne_bytes(*data_array); in write()
95 let val = u16::from_ne_bytes(val_arr); in write()
482 let val = u32::from_ne_bytes(val_arr); in write()
93 Self($base::from_ne_bytes(bytes))
86 s_addr: u32::from_ne_bytes(addr.ip().octets()), in socket_addr()
46 s_addr: u32::from_ne_bytes(s.ip().octets()), in sockaddrv4_to_lib_c()
123 Ok(u64::from_ne_bytes(bytes[..].try_into().unwrap())) in read_u64()319 u64::from_ne_bytes(val) in read_u64()
170 return Ok(u64::from_ne_bytes(buf)); in read_u64()
586 assert_eq!(u64::from_ne_bytes(buf), VALUE); in drop_before_completion()
136 let val = u32::from_ne_bytes(data_arr); in write()520 u32::from_ne_bytes(data) in read_reg()
170 pub fn from_ne_bytes(bytes: [u8; 2]) -> bf16 { in from_ne_bytes() method171 bf16::from_bits(u16::from_ne_bytes(bytes))
469 pub fn from_ne_bytes(bytes: [u8; 2]) -> f16 { in from_ne_bytes() method470 f16::from_bits(u16::from_ne_bytes(bytes))
59 s_addr: u32::from_ne_bytes(s.ip().octets()), in sockaddrv4_to_lib_c()