I don't think it does, but some parts (the older ones) of the public GDAL API don't use const. I admit I didn't check the implementation this time though.
Laurentiu On Mon, Dec 18, 2023, at 00:09, Fitch, Simeon via gdal-dev wrote: > The last argument to function `CPLErr GDALWriteBlock(GDALRasterBandH, int, > int, void*)`, pointing to the block array, is not `const`. I can't find > anything in the documentation discussing ownership, etc. but need to know > what kind of invariants can be assumed here. > > Are there (driver dependent?) circumstances where `GDALWriteBlock` will > mutate the given array, or can callers assume it's effectively `const void*`? > > Thanks, > > Simeon > > The content of this email is intended for the person or entity to which it is > addressed only. This email may contain confidential information. If you are > not the person to whom this message is addressed, be aware that any use, > reproduction, or distribution of this message is strictly prohibited. If you > received this in error, please contact the sender and immediately delete this > email and any attachments. > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev