Home
last modified time | relevance | path

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

/third_party/rust/crates/rustix/src/backend/libc/net/
Dwrite_sockaddr.rs37 sin_port: u16::to_be(v4.port()), in encode_sockaddr_v4()
66 u16::to_be(v6.port()), in encode_sockaddr_v6()
67 u32::to_be(v6.flowinfo()), in encode_sockaddr_v6()
84 u16::to_be(v6.port()), in encode_sockaddr_v6()
85 u32::to_be(v6.flowinfo()), in encode_sockaddr_v6()
/third_party/rust/crates/rustix/src/backend/linux_raw/net/
Dwrite_sockaddr.rs23 sin_port: u16::to_be(v4.port()), in encode_sockaddr_v4()
40 sin6_port: u16::to_be(v6.port()), in encode_sockaddr_v6()
41 sin6_flowinfo: u32::to_be(v6.flowinfo()), in encode_sockaddr_v6()
/third_party/rust/crates/rustix/src/net/
Dip.rs1207 a.to_be(), in new()
1208 b.to_be(), in new()
1209 c.to_be(), in new()
1210 d.to_be(), in new()
1211 e.to_be(), in new()
1212 f.to_be(), in new()
1213 g.to_be(), in new()
1214 h.to_be(), in new()
/third_party/rust/crates/num-traits/src/
Dint.rs328 fn to_be(self) -> Self; in to_be() method
481 fn to_be(self) -> Self {
482 <$T>::to_be(self)
/third_party/rust/crates/nix/src/sys/socket/
Daddr.rs471 sin_port: addr.port().to_be(), // network byte order
484 sin6_port: addr.port().to_be(), // network byte order
500 sin_port: port.to_be(),
508 sin6_port: port.to_be(),
646 ((d as u32) << 0)).to_be();
1268 sin_port: u16::to_be(port), in new()
1346 sin_port: addr.port().to_be(), // network byte order in from()
1464 sin6_port: addr.port().to_be(), // network byte order in from()
2969 assert_eq!(l.s_addr, u32::to_be(0x01020304)); in test_ipv4addr_to_libc()
Dmod.rs229 EthAll = libc::ETH_P_ALL.to_be(),
/third_party/rust/crates/nix/test/sys/
Dtest_socket.rs30 assert_eq!(saddr, ip.to_be()); in test_inetv4_addr_to_sock_addr()
31 assert_eq!(addr.sin_port, port.to_be()); in test_inetv4_addr_to_sock_addr()