<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div style="font-family:Arial;">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.<br></div><div style="font-family:Arial;"><br></div><div style="font-family:Arial;">Laurentiu</div><div style="font-family:Arial;"><br></div><div>On Mon, Dec 18, 2023, at 00:09, Fitch, Simeon via gdal-dev wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div dir="ltr" class="qt-gmail_signature"><div dir="ltr"><div>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.<br></div><div><br></div><div>Are there (driver dependent?) circumstances where `GDALWriteBlock` will mutate the given array, or can callers assume it's effectively `const void*`?<br></div><div><br></div><div>Thanks,<br></div><div><br></div><div>Simeon<br></div></div></div></div><div><br></div><div><span class="font" style="font-family:Verdana;"><span class="size" style="font-size:10px;"><span class="color" style="color:rgb(128, 128, 128);">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.</span></span></span><br></div><div>_______________________________________________<br></div><div>gdal-dev mailing list<br></div><div><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br></div><div><a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></div><div><br></div></blockquote></body></html>