[Lazarus] reading a little endian long.
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Dec 22 02:16:26 CET 2008
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.
Mattias
More information about the Lazarus
mailing list