SysMemSwapΒΆ
This function of type BOOL can be used to swap data.
It is used on Motorola byte order systems (PPC) to swap from Motorola to Intel byte order. On Intel systems (ARM, MIPS, SH, x86) the function has no effect. This allows to write portable libraries.
The function will return TRUE if the operation has been terminated successfully, otherwise FALSE.
Note
The return value does not indicate whether the operation was performed or not.
Variable | Data Type | Description |
---|---|---|
dwAddress | DWORD | Address of the memory buffer to be swapped |
diSwapSize | DINT | Number of locations to be swapped: 2,4,8 |
diSwapElements | DINT | Number of elements in the memory area to be swapped |