|
var
iSourceNode: Longword;
curSequenceNumber: Array [0..4] of Byte;
copymemory (@ curSequenceNumber, @ iSourceNode, sizeof (iSourceNode));
If iSourceNode = 1, copy the memory, then the buffer curSequenceNumber is
01 00 00 00, instead of 00 00 00 01, why? ?
Do I have to manually swap the high and low bytes when each number is written to the buffer? ? |
|