[gdal-dev] CPL_LSBSINT64PTR and CPL_LSBUINT64PTR ?

Andrew C Aitchison gdal at aitchison.me.uk
Tue Mar 10 07:17:47 PDT 2026


port/cpl_port.h says

/** Return a Int16 from the 2 bytes ordered in LSB order at address x.
  * @deprecated Use rather CPL_LSBSINT16PTR or CPL_LSBUINT16PTR for 
explicit
  * signedness. */
#define CPL_LSBINT16PTR(x)

and

/** Return a Int32 from the 4 bytes ordered in LSB order at address x.
  * @deprecated Use rather CPL_LSBSINT32PTR or CPL_LSBUINT32PTR for 
explicit
  * signedness. */
#define CPL_LSBINT32PTR(x)

... but I cannot find any of
   CPL_LSBINT64PTR
   CPL_LSBSINT64PTR
or
   CPL_LSBUINT64PTR.

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 ?

Thanks,

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


More information about the gdal-dev mailing list