Module bswap::leu16 [] [src]

Swap bytes for u16 objects only on big-endian targets, does nothing on little-endian targets.

Functions

decode

Decodes $E-endian bytes to a native-endian $T object.

decode_slice

Decodes $E-endian bytes to a slice of native-endian $T objects.

encode

Encodes a native-endian $T object to $E-endian bytes.

encode_slice

Encodes a slice of native-endian $T objects to $E-endian bytes.