[Lazarus] Loading an integer into a byte array

Dave Coventry dgcoventry at gmail.com
Thu Jan 8 17:38:12 CET 2009


Thanks DoDi.

2009/1/8 Hans-Peter Diettrich <DrDiettrich1 at aol.com>:
> Dave Coventry schrieb:
> Which file?
It's just a data file that I'm writing to. But it does have to be
portable to other applications.

> That's the Intel byte order.
Yes, the specification of the datafile require little endian byte order.

> What is "loading"? Reading from the file?
No, the integer value is calculated and must be saved to the file.
There is more than one integer in a 48 byte block and I want to write
this block to the file, so I'm loading a 48 byte buffer. Some of the
values are single bytes or text.



More information about the Lazarus mailing list