Home
last modified time | relevance | path

Searched refs:from_be_bytes (Results 1 – 18 of 18) sorted by relevance

/external/rust/crates/gdbstub/src/internal/
Dbe_bytes.rs11 fn from_be_bytes(buf: &[u8]) -> Option<Self>; in from_be_bytes() method
27 fn from_be_bytes(buf: &[u8]) -> Option<Self> {
66 BeBytes::from_be_bytes(&[0x12, 0x34, 0x56, 0x78]).unwrap() in basic()
74 BeBytes::from_be_bytes(&[0x12, 0x34, 0x56]).unwrap() in small()
82 BeBytes::from_be_bytes(&[0xde, 0xad, 0xbe, 0xef]).unwrap_or(0x1234) in too_big()
/external/rust/crates/bytes/src/buf/
Dbuf_impl.rs48 return $typ::from_be_bytes(buf);
331 buf_get_impl!(self, u16::from_be_bytes); in get_u16()
371 buf_get_impl!(self, i16::from_be_bytes); in get_i16()
411 buf_get_impl!(self, u32::from_be_bytes); in get_u32()
451 buf_get_impl!(self, i32::from_be_bytes); in get_i32()
491 buf_get_impl!(self, u64::from_be_bytes); in get_u64()
531 buf_get_impl!(self, i64::from_be_bytes); in get_i64()
571 buf_get_impl!(self, u128::from_be_bytes); in get_u128()
611 buf_get_impl!(self, i128::from_be_bytes); in get_i128()
/external/rust/crates/gdbstub/src/arch/ppc/reg/
Dcommon.rs84 .map(|x| u32::from_be_bytes(x.try_into().unwrap())); in gdb_deserialize()
92 .map(|x| f64::from_be_bytes(x.try_into().unwrap())); in gdb_deserialize()
102 .map(|x| u32::from_be_bytes(x.try_into().unwrap())); in gdb_deserialize()
113 .map(|x| u128::from_be_bytes(x.try_into().unwrap())); in gdb_deserialize()
/external/rust/crates/ring/src/digest/
Dsha2.rs64 *W = S::from_be_bytes(*M);
162 fn from_be_bytes(input: Self::InputBytes) -> Self; in from_be_bytes() method
185 fn from_be_bytes(input: Self::InputBytes) -> Self { in from_be_bytes() method
186 Wrapping(u32::from_be_bytes(input)) in from_be_bytes()
277 fn from_be_bytes(input: Self::InputBytes) -> Self { in from_be_bytes() method
278 Wrapping(u64::from_be_bytes(input)) in from_be_bytes()
Dsha1.rs55 W[t] = W32::from_be_bytes(M[t]);
/external/rust/crates/quiche/examples/
Dqpack-decode.rs59 let stream_id = u64::from_be_bytes(stream_id); in main()
62 let len = u32::from_be_bytes(len) as usize; in main()
/external/crosvm/disk/src/qcow/
Dqcow_raw_file.rs48 *ptr = u64::from_be_bytes(value) & mask; in read_pointer_table()
91 *refcount = u16::from_be_bytes(value); in read_refcount_block()
Dmod.rs200 Ok(u16::from_be_bytes(value)) in read_u16_from_file()
209 Ok(u32::from_be_bytes(value)) in read_u32_from_file()
218 Ok(u64::from_be_bytes(value)) in read_u64_from_file()
/external/rust/crates/ring/src/aead/gcm/
Dgcm_nohw.rs229 swapped[0] ^= u64::from_be_bytes(inp[8..].try_into().unwrap()); in ghash()
230 swapped[1] ^= u64::from_be_bytes(inp[..8].try_into().unwrap()); in ghash()
/external/rust/crates/gdbstub/src/gdbstub_impl/
Dmod.rs417 let addr = <T::Arch as Arch>::Usize::from_be_bytes(cmd.addr) in handle_base()
445 let addr = <T::Arch as Arch>::Usize::from_be_bytes(cmd.addr) in handle_base()
488 let addr = <T::Arch as Arch>::Usize::from_be_bytes(cmd.addr) in handle_base()
513 let addr = <T::Arch as Arch>::Usize::from_be_bytes(cmd.addr) in handle_base()
/external/rust/crates/ring/src/rsa/
Dverification.rs73 let e = bigint::PublicExponent::from_be_bytes(e, e_min_value)?; in from_modulus_and_exponent()
/external/crosvm/devices/src/virtio/video/
Dcommand.rs210 uuid: u128::from_be_bytes(uuid), in from_reader()
/external/rust/crates/criterion/src/
Dconnection.rs109 let length = u32::from_be_bytes(length_buf); in recv()
/external/rust/crates/serde_cbor/src/
Dde.rs271 .map(|()| u16::from_be_bytes(buf)) in parse_u16()
278 .map(|()| u32::from_be_bytes(buf)) in parse_u32()
285 .map(|()| u64::from_be_bytes(buf)) in parse_u64()
/external/rust/crates/byteorder/src/
Dlib.rs1973 u16::from_be_bytes(buf[..2].try_into().unwrap()) in read_u16()
1978 u32::from_be_bytes(buf[..4].try_into().unwrap()) in read_u32()
1983 u64::from_be_bytes(buf[..8].try_into().unwrap()) in read_u64()
1988 u128::from_be_bytes(buf[..16].try_into().unwrap()) in read_u128()
/external/rust/crates/half/src/
Dbfloat.rs149 pub fn from_be_bytes(bytes: [u8; 2]) -> bf16 { in from_be_bytes() method
150 bf16::from_bits(u16::from_be_bytes(bytes))
Dbinary16.rs448 pub fn from_be_bytes(bytes: [u8; 2]) -> f16 { in from_be_bytes() method
449 f16::from_bits(u16::from_be_bytes(bytes))
/external/rust/crates/ring/src/arithmetic/
Dbigint.rs660 pub fn from_be_bytes( in from_be_bytes() method
1540 PublicExponent::from_be_bytes(untrusted::Input::from(&[0x1, 0x00, 0x01]), 65537) in test_public_exponent_debug()