[gdal-dev] Under what (if any) conditions would GDALWriteBlock modify data buffer?

Fitch, Simeon fitch at astraea.io
Sun Dec 17 14:09:09 PST 2023


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20231217/024d8506/attachment.htm>


More information about the gdal-dev mailing list