[gdal-dev] CPL_LSBSINT64PTR and CPL_LSBUINT64PTR ?

Even Rouault even.rouault at spatialys.com
Tue Mar 10 07:22:09 PDT 2026


Andrew,
>
> I have the address of a 64bit unsigned integer in little endian order.
> Which macro should I use to put it into a uint64_t variable ?

Something like:

uint64_t x;
memcpy(&x, ptr, sizeof(x));
CPL_LSBPTR64(&x);

Even

-- 
http://www.spatialys.com
My software is free, but my time generally not.



More information about the gdal-dev mailing list