swapBytes
fn
T swapBytes(T)(T value) if (isIntegral!T) pure nothrow @nogc @safeSwap bytes of an integral value.
This template function reverses the byte order of a given value.
Parameters
value | The value whose bytes should be swapped. |
Returns
The byte-swapped value.