35 namespace libwire::internal_ {
37 uint16_t flip_endianess(uint16_t) noexcept;
38 uint32_t flip_endianess(uint32_t) noexcept;
40 bool host_is_network() noexcept;
43 inline T host_to_network(T input) noexcept {
44 return host_is_network() ? input : flip_endianess(input);
48 inline T network_to_host(T input) noexcept {
49 return host_is_network() ? input : flip_endianess(input);