stCPUToBE16 macro
Declaration
#define stCPUToBE16(
  Value
)
Parameters
Value

The 16-bit value to convert to Big Endian byte ordering.

Return value

Returns the value converted to Big Endian format.

Description

This macro converts a 16-bit number from the CPU's native byte ordering into Big Endian format.

If the host processor operates in Little Endian mode, the macro invokes the stSwap16 function to reverse the byte order of the specified value. If the processor operates in Big Endian mode, the value remains unmodified.

This macro 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, ST_USE_ENDIANS, stSwap16
SpaceShadow documentation