swapEndian16

Returns 16-bit integer n with swapped endianness TODO: move to dlib.math.utils

T
swapEndian16
(
T
)
(
T n
)

Examples

assert(swapEndian16(cast(ushort)0xFF00) == 0x00FF);

Meta