SysMemForceSwap (FUN)
FUNCTION SysMemForceSwap : DINT
Routine to force swapping memory independant of the byteorder of the system! RETURN: Number of bytes swapped:
-1 = failed (size too large)
>0 = Number of bytes swapped
- InOut:
Scope
Name
Type
Comment
Return
SysMemForceSwapDINTInput
pbyBufferPOINTER TO BYTE
POINTER TO data TO swap. You can check, which order is selected by calling the routine with pbyBuffer=0
udiSizeUDINTSize of one element to swap
udiCountUDINTNumber of elements to swap