Searched refs:from_be (Results 1 – 10 of 10) sorted by relevance
/external/crosvm/common/data_model/src/ |
D | endian.rs | 117 endian_type!(u16, Be16, to_be, from_be); 118 endian_type!(i16, SBe16, to_be, from_be); 119 endian_type!(u32, Be32, to_be, from_be); 120 endian_type!(i32, SBe32, to_be, from_be); 121 endian_type!(u64, Be64, to_be, from_be); 122 endian_type!(i64, SBe64, to_be, from_be); 123 endian_type!(usize, BeSize, to_be, from_be); 124 endian_type!(isize, SBeSize, to_be, from_be);
|
/external/rust/crates/num-traits/src/ |
D | int.rs | 290 fn from_be(x: Self) -> Self; in from_be() method 471 fn from_be(x: Self) -> Self { 472 <$T>::from_be(x)
|
/external/rust/crates/ring/src/ |
D | endian.rs | 136 impl_endian!(BigEndian, u32, to_be, from_be, 4); 137 impl_endian!(BigEndian, u64, to_be, from_be, 8);
|
/external/rust/crates/mio/src/sys/unix/ |
D | net.rs | 147 let port = u16::from_be(addr.sin_port); in to_socket_addr() 154 let port = u16::from_be(addr.sin6_port); in to_socket_addr()
|
/external/rust/crates/socket2/src/ |
D | sockaddr.rs | 171 let port = u16::from_be(addr.sin_port); in as_socket() 178 let port = u16::from_be(addr.sin6_port); in as_socket()
|
/external/rust/crates/nix/src/sys/socket/ |
D | addr.rs | 526 InetAddr::V6(ref sa) => u16::from_be(sa.sin6_port), 527 InetAddr::V4(ref sa) => u16::from_be(sa.sin_port), 663 let bits = u32::from_be(self.0.s_addr); 1251 u32::from_be(self.0.sin_addr.s_addr) in ip() 1279 u16::from_be(self.0.sin_port) in port() 1316 let ne = u32::from_be(self.0.sin_addr.s_addr); in fmt() 1317 let port = u16::from_be(self.0.sin_port); in fmt() 1358 u16::from_be(addr.0.sin_port), in from() 1393 u16::from_be(self.0.sin6_port) in port() 1478 u16::from_be(addr.0.sin6_port), in from()
|
/external/rust/crates/quiche/src/ |
D | ffi.rs | 1351 let ip_addr = Ipv4Addr::from(u32::from_be(in4.sin_addr.s_addr)); in std_addr_from_c() 1364 let port = u16::from_be(in4.sin_port); in std_addr_from_c() 1383 let port = u16::from_be(in6.sin6_port); in std_addr_from_c() 1532 assert_eq!(u16::from_be((*in_addr).sin_port), addr.port()); in addr_v4() 1576 assert_eq!(u16::from_be((*in6_addr).sin6_port), addr.port()); in addr_v6()
|
/external/crosvm/base/src/sys/unix/ |
D | net.rs | 272 Ok(u16::from_be(sin.sin_port)) in local_port() 301 Ok(u16::from_be(sin6.sin6_port)) in local_port()
|
/external/rust/crates/octets/src/ |
D | lib.rs | 72 Ok(<$ty>::from_be(out))
|
/external/rust/crates/nix/test/sys/ |
D | test_socket.rs | 2438 u32::from_be(0x7f000001) in test_recverr_v4()
|