
R&S ZVL
Interfaces and Connectors
Operating Manual 1303.6580.32-05
602
C format
(Unix)
void RSDLLSwapBytes( void *pArray, const long size, const long
count)
Parameters
pArray
// Array in which modifications are made
size
// Size of a single element in
pArray
count
// Number of elements in
pArray
Example
RSDLLSwapBytes( Buffer, sizeof(float), ibcntl/sizeof(float))
This function swaps the display of various elements from
Big Endian
to
Little Endian
and vice versa. It is
expected that a coherent storage area of elements of the same file type (
size
byte) is transferred to
pArray
. This function has no effect on Intel platforms.
Different types of processor architecture store data in different byte sequences. For example, Intel
processors store data in the reverse order of Motorola processors. Comparison of byte sequences:
Byte
sequence
Use in
Display in memory
Description
Big Endian
Motorola processors, network
standard
Most significant byte at least
significant address
The
most significant
byte is at the left end
of the word.
Little Endian Intel processors
Least significant byte at least
significant address
The
most significant
byte is at the right
end of the word.