[Lazarus] reading a little endian long.

Marc Weustink marc.weustink at cuperus.nl
Mon Dec 22 10:25:55 CET 2008

Mattias Gaertner wrote:
> On Mon, 22 Dec 2008 01:11:38 +0100
> Marc Weustink <marc at dommelstein.net> wrote:
>> Dave Coventry wrote:
>>> Wow.
>>> If I can push a little more: Can I read in an eight-byte IEEE double
>>> using the same trick?
>> The example below is not complete, you need to cast.
>> MyDouble:=LEtoN(PDouble(@buffer[5])^);
>> Use codejumping (find declaration) on LEtoN to see what variants
>> exist.
> AFAIK LEToN does not exist for double.
> You have to write one.

Ok, then I've only looked at it and didn't implement.


More information about the Lazarus mailing list