#include <revolution/net.h>
inline u16 NETSwapBytes16( u16 val );
inline u32 NETSwapBytes32( u32 val );
| val | Value whose byte order is to be reversed. |
Value whose byte order was reversed.
This function reverses the byte order of a 16- or 32-bit value.
This function can be used for endian conversion and other such uses.
Ex.)
NETSwapBytes16(0xAABB) == 0xBBAA
NETSwapBytes32(0xAABB) == 0xBBAA0000
NETReadSwappedBytes16, NETReadSwappedBytes32, NETWriteSwappedBytes16, NETWriteSwappedBytes32
2006/09/01 Initial version.
CONFIDENTIAL