stCPUToBE32 macro
Declaration:
#define stCPUToBE32(
  Value
)
Parameters:
Value

Value to be converted into big-endian byte ordering.

Return value:

Macro returns swapped value.

Description:

Macro is responsible for converting 32-bit number format, specified for processor, into big-endian.

In case macro is used on processor that works in little-endian, stSwap32 function will be used during conversion. It inverts byte ordering of the specified value. If macro is used on processor that works in big-endian, the macro will not modify the value.

Macro will not be compiled when the functions responsible for byte ordering are excluded from compilation, by setting ST_USE_ENDIANS to 0.

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