[gdal-dev] CPL_LSBSINT64PTR and CPL_LSBUINT64PTR ?

Andrew C Aitchison gdal at aitchison.me.uk
Tue Mar 10 12:58:44 PDT 2026


On Tue, 10 Mar 2026, Even Rouault wrote:

> 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);

Thanks.

-- 
Andrew C. Aitchison                      Kendal, UK
                    andrew at aitchison.me.uk


More information about the gdal-dev mailing list