Home
last modified time | relevance | path

Searched refs:to_be (Results 1 – 13 of 13) sorted by relevance

/external/crosvm/data_model/src/
Dendian.rs114 endian_type!(u16, Be16, to_be, from_be);
115 endian_type!(i16, SBe16, to_be, from_be);
116 endian_type!(u32, Be32, to_be, from_be);
117 endian_type!(i32, SBe32, to_be, from_be);
118 endian_type!(u64, Be64, to_be, from_be);
119 endian_type!(i64, SBe64, to_be, from_be);
120 endian_type!(usize, BeSize, to_be, from_be);
121 endian_type!(isize, SBeSize, to_be, from_be);
/external/rust/crates/num-traits/src/
Dint.rs276 fn to_be(self) -> Self; in to_be() method
378 fn to_be(self) -> Self {
379 <$T>::to_be(self)
/external/rust/crates/mio/src/sys/windows/
Dnet.rs76 sin_port: addr.port().to_be(), in socket_addr()
98 sin6_port: addr.port().to_be(), in socket_addr()
/external/rust/crates/byteorder/src/
Dlib.rs2003 out.to_be() in read_uint()
2018 out.to_be() in read_uint128()
2023 unsafe_write_num_bytes!(u16, 2, n, buf, to_be); in write_u16()
2028 unsafe_write_num_bytes!(u32, 4, n, buf, to_be); in write_u32()
2033 unsafe_write_num_bytes!(u64, 8, n, buf, to_be); in write_u64()
2038 unsafe_write_num_bytes!(u128, 16, n, buf, to_be); in write_u128()
2046 let bytes = *(&n.to_be() as *const u64 as *const [u8; 8]); in write_uint()
2060 let bytes = *(&n.to_be() as *const u128 as *const [u8; 16]); in write_uint128()
2071 unsafe_read_slice!(src, dst, 2, to_be); in read_u16_into()
2076 unsafe_read_slice!(src, dst, 4, to_be); in read_u32_into()
[all …]
/external/rust/crates/ring/src/
Dendian.rs135 impl_endian!(BigEndian, u32, to_be, from_be, 4);
136 impl_endian!(BigEndian, u64, to_be, from_be, 8);
/external/rust/crates/mio/src/sys/unix/
Dnet.rs91 sin_port: addr.port().to_be(), in socket_addr()
112 sin6_port: addr.port().to_be(), in socket_addr()
/external/libchromeos-rs/src/
Dnet.rs44 sin_port: s.port().to_be(), in sockaddrv4_to_lib_c()
55 sin6_port: s.port().to_be(), in sockaddrv6_to_lib_c()
/external/rust/crates/ppv-lite86/src/
Dgeneric.rs556 dmap(x, |x| x.to_be()) in unsafe_read_be()
567 let x = dmap(self, |x| x.to_be()); in write_be()
582 qmap(x, |x| x.to_be()) in unsafe_read_be()
593 let x = qmap(self, |x| x.to_be()); in write_be()
/external/llvm-project/libcxx/test/libcxx/gdb/
Dgdb_pretty_printer_test.sh.cpp173 std::string_view to_be(source_string); in string_view_test() local
175 to_be, "std::string_view of length 18: \"to be or not to be\""); in string_view_test()
/external/rust/crates/nix/src/sys/socket/
Daddr.rs265 sin_port: addr.port().to_be(), // network byte order in from_std()
273 sin6_port: addr.port().to_be(), // network byte order in from_std()
288 sin_port: port.to_be(), in new()
296 sin6_port: port.to_be(), in new()
415 (u32::from(d) << 0)).to_be(); in new()
/external/crosvm/sys_util/src/
Dnet.rs57 sin_port: s.port().to_be(), in sockaddrv4_to_lib_c()
68 sin6_port: s.port().to_be(), in sockaddrv6_to_lib_c()
/external/rust/crates/nix/test/sys/
Dtest_socket.rs25 assert_eq!(saddr, ip.to_be()); in test_inetv4_addr_to_sock_addr()
26 assert_eq!(addr.sin_port, port.to_be()); in test_inetv4_addr_to_sock_addr()
49 assert_eq!(addr.sin6_port, port.to_be()); in test_inetv6_addr_to_sock_addr()
/external/rust/crates/quiche/src/
Doctets.rs102 let src = &<$ty>::to_be(v) as *const $ty as *const u8;