stCPUToBE32 macro
Declaration
#define stCPUToBE32(
  Value
)
Parameters
Value

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

Return value

Returns the value converted to Big Endian format.

Description

This macro converts a 32-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 stSwap32 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, stSwap32
SpaceShadow documentation