stSwap16 function
Declaration
INLINE UINT16 stSwap16(
  UINT16 Value
);
Parameters
Value

The 16-bit value to swap.

Return value

Returns the value with its byte order reversed.

Description

This function reverses the byte sequence of the specified 16-bit value. It is a low-level primitive and should not be used directly for generic endianness conversion; specific macros (such as stLEToCPU16) should be used for that purpose to ensure architectural portability.

This function is excluded from compilation if the byte ordering module is disabled by setting the ST_USE_ENDIANS configuration constant to 0.

Version:1.0
Header file:ST_Endian.h (include ST_API.h)
See also: byte ordering, INLINE, ST_USE_ENDIANS, UINT16
SpaceShadow documentation