LongVal := SwapEndianLongWord(16); // Extra data size (4 (mask size) + 4 (ranges size) + 8 (name))
TSimpleLWRec = packed record
B0, B1, B2, B3: byte;
end;
...
// In SwapEndianLongWord:
TSimpleLWRec(Result).B0 = TSimpleLWRec(Value).B3;
TSimpleLWRec(Result).B1 = TSimpleLWRec(Value).B2;
//etc...
LongVal := 16;
LongVal := SwapEndianLongWord(LongVal); // Extra data size (4 (mask size) + 4 (ranges size) + 8 (name))
Page created in 0.023 seconds with 20 queries.