Home
last modified time | relevance | path

Searched refs:from_le_bytes (Results 1 – 25 of 33) sorted by relevance

12

/external/rust/crates/gdbstub/src/arch/x86/reg/
Dcore64.rs84 .map(|x| u64::from_le_bytes(x.try_into().unwrap())); in gdb_deserialize()
90 self.rip = u64::from_le_bytes(bytes[0x80..0x88].try_into().unwrap()); in gdb_deserialize()
91 self.eflags = u32::from_le_bytes(bytes[0x88..0x8C].try_into().unwrap()); in gdb_deserialize()
95 .map(|x| u32::from_le_bytes(x.try_into().unwrap())); in gdb_deserialize()
111 .map(|x| u128::from_le_bytes(x.try_into().unwrap())); in gdb_deserialize()
117 self.mxcsr = u32::from_le_bytes(bytes[0x214..0x218].try_into().unwrap()); in gdb_deserialize()
Dcore32.rs97 .map(|x| u32::from_le_bytes(x.try_into().unwrap())); in gdb_deserialize()
108 .map(|x| u32::from_le_bytes(x.try_into().unwrap())); in gdb_deserialize()
124 .map(|x| u128::from_le_bytes(x.try_into().unwrap())); in gdb_deserialize()
130 self.mxcsr = u32::from_le_bytes(bytes[0x130..0x134].try_into().unwrap()); in gdb_deserialize()
Dmod.rs69 .map(|x| u32::from_le_bytes(x.try_into().unwrap())); in gdb_deserialize()
/external/rust/crates/gdbstub/src/internal/
Dle_bytes.rs11 fn from_le_bytes(buf: &[u8]) -> Option<Self>; in from_le_bytes() method
27 fn from_le_bytes(buf: &[u8]) -> Option<Self> {
66 LeBytes::from_le_bytes(&[0x78, 0x56, 0x34, 0x12]).unwrap() in basic()
74 LeBytes::from_le_bytes(&[0x56, 0x34, 0x12]).unwrap() in small()
82 LeBytes::from_le_bytes(&[0xde, 0xad, 0xbe, 0xef]).unwrap_or(0x1234) in too_big()
/external/rust/crates/bytes/src/buf/
Dbuf_impl.rs41 return $typ::from_le_bytes(buf);
351 buf_get_impl!(self, u16::from_le_bytes); in get_u16_le()
391 buf_get_impl!(self, i16::from_le_bytes); in get_i16_le()
431 buf_get_impl!(self, u32::from_le_bytes); in get_u32_le()
471 buf_get_impl!(self, i32::from_le_bytes); in get_i32_le()
511 buf_get_impl!(self, u64::from_le_bytes); in get_u64_le()
551 buf_get_impl!(self, i64::from_le_bytes); in get_i64_le()
591 buf_get_impl!(self, u128::from_le_bytes); in get_u128_le()
631 buf_get_impl!(self, i128::from_le_bytes); in get_i128_le()
/external/rust/crates/rand_xorshift/src/
Dlib.rs111 x: w(u32::from_le_bytes([b[0], b[1], b[2], b[3]])), in from_rng()
112 y: w(u32::from_le_bytes([b[4], b[5], b[6], b[7]])), in from_rng()
113 z: w(u32::from_le_bytes([b[8], b[9], b[10], b[11]])), in from_rng()
114 w: w(u32::from_le_bytes([b[12], b[13], b[14], b[15]])), in from_rng()
/external/crosvm/devices/src/virtio/
Dvirtio_pci_common_config.rs84 u16::from_le_bytes(data.try_into().unwrap()), in write()
89 u32::from_le_bytes(data.try_into().unwrap()), in write()
95 u64::from_le_bytes(data.try_into().unwrap()), in write()
306 assert_eq!(u32::from_le_bytes(read_back), DUMMY_FEATURES as u32); in write_base_regs()
312 assert_eq!(u32::from_le_bytes(read_back), 0x0403_0201); in write_base_regs()
316 assert_eq!(u32::from_le_bytes(read_back), 0x0403_0201); in write_base_regs()
/external/rust/crates/gdbstub/src/arch/mips/reg/
Dmips.rs148 .map(|c| U::from_le_bytes(c).unwrap()); in gdb_deserialize()
235 .map(|c| U::from_le_bytes(c).unwrap()); in gdb_deserialize()
246 u32::from_le_bytes(bytes[dspctl_start..dspctl_start + 4].try_into().unwrap()); in gdb_deserialize()
249 self.dsp.restart = U::from_le_bytes( in gdb_deserialize()
/external/rust/crates/rand_core/src/
Dle.rs21 *out = u32::from_le_bytes(chunk.try_into().unwrap()); in read_u32_into()
30 *out = u64::from_le_bytes(chunk.try_into().unwrap()); in read_u64_into()
Dimpls.rs139 u32::from_le_bytes(buf) in next_u32_via_fill()
146 u64::from_le_bytes(buf) in next_u64_via_fill()
/external/crosvm/devices/src/pci/
Dmsix.rs168 let reg = u16::from_le_bytes([data[0], data[1]]); in write_msix_capability()
208 let msi_address: u64 = u64::from_le_bytes(data); in add_msi_route()
211 let msi_data: u32 = u32::from_le_bytes(data); in add_msi_route()
338 let value = u32::from_le_bytes(data.try_into().unwrap()); in write_msix_table()
348 let value = u64::from_le_bytes(data.try_into().unwrap()); in write_msix_table()
Dvfio_pci.rs60 u16::from_le_bytes(data) in read_config_word()
69 u32::from_le_bytes(data) in read_config_dword()
182 self.ctl = u16::from_le_bytes(value); in write_msi_reg()
193 self.address = u64::from_le_bytes(value); in write_msi_reg()
198 self.address |= u64::from_le_bytes(value); in write_msi_reg()
203 self.address |= u64::from_le_bytes(value); in write_msi_reg()
209 self.address = u64::from_le_bytes(value); in write_msi_reg()
216 self.data = u16::from_le_bytes(value); in write_msi_reg()
Dpci_root.rs240 u32::from(u16::from_le_bytes(data.try_into().unwrap())) << (offset * 16), in set_config_address()
242 4 => (0xffff_ffff, u32::from_le_bytes(data.try_into().unwrap())), in set_config_address()
/external/crosvm/devices/src/virtio/vhost/
Dvsock.rs263 assert_eq!(cid, u64::from_le_bytes(buf)); in read_config()
268 u32::from_le_bytes(buf[..4].try_into().unwrap()) in read_config()
274 u32::from_le_bytes(buf[..4].try_into().unwrap()) in read_config()
/external/rust/crates/clang-sys/build/
Ddynamic.rs43 let offset = i32::from_le_bytes(buffer); in parse_pe_header()
56 Ok(u16::from_le_bytes(buffer)) in parse_pe_header()
/external/rust/crates/clang-sys/out/
Ddynamic.rs43 let offset = i32::from_le_bytes(buffer); in parse_pe_header()
56 Ok(u16::from_le_bytes(buffer)) in parse_pe_header()
/external/crosvm/fuzz/
Dqcow_fuzzer.rs37 u64::from_le_bytes(buf) in read_u64()
Dblock_fuzzer.rs106 u64::from_le_bytes(buf) in read_u64()
/external/rust/crates/gdbstub/src/arch/msp430/reg/
Dmsp430.rs44 .map(|c| u16::from_le_bytes(c.try_into().unwrap())); in gdb_deserialize()
/external/rust/crates/gdbstub/src/arch/riscv/reg/
Driscv.rs57 .map(|c| U::from_le_bytes(c).unwrap()); in gdb_deserialize()
/external/rust/crates/gdbstub/src/arch/arm/reg/
Darm_core.rs54 .map(|c| u32::from_le_bytes(c.try_into().unwrap())); in gdb_deserialize()
/external/rust/crates/byteorder/
DREADME.md62 like `to_le_bytes` and `from_le_bytes`, which support some of the same use
/external/adhd/cras/client/cras_tests/src/
Daudio.rs293 let sample = i16::from_le_bytes([ in write()
313 let mut sample = i32::from_le_bytes([ in write()
/external/adhd/cras/client/libcras/src/
Dcras_client_message.rs183 match u32::from_le_bytes(self.data[offset..offset + 4].try_into()?) { in get_id()
/external/crosvm/devices/src/usb/xhci/
Dscatter_gather_buffer.rs210 ntrb.set_data_buffer(u64::from_le_bytes(expected_immediate_data)); in immediate_data_test()

12