Module byte_order

Module byte_order 

Source
Expand description

Helpers for explicit network byte-order conversions.

These helpers keep Clippy expectations scoped to the conversion points so protocol code can remain explicit about wire endianness without repeating lint annotations.

Functionsยง

read_network_u16
Parse a network-order u16 from its on-wire representation.
write_network_u16
Serialise a u16 in network byte order (big-endian).