Returns 16-bit integer n with swapped endianness TODO: move to dlib.math.utils
assert(swapEndian16(cast(ushort)0xFF00) == 0x00FF);
See Implementation
Returns 16-bit integer n with swapped endianness TODO: move to dlib.math.utils