swapByteOrder
fn
void swapByteOrder(T)(T[] array) if (T.sizeof == 2 || T.sizeof == 4) @trusted @nogc pure nothrowSwap byte order of items in an array in place.
Parameters
T | Item type. Must be either 2 or 4 bytes long. |
array | Buffer with values to fix byte order of. |