Re: [gdal-dev] Memory mapped VSILFILE ?

2023-09-05 Thread Even Rouault
Andrew, cf CPLVirtualMemFileMapNew() ( https://gdal.org/doxygen/cpl__virtualmem_8h.html#a02ab08b2cf138fa69d076ccd81eda3cb ) which was an implementation step of https://gdal.org/development/rfc/rfc45_virtualmem.html RawRasterBand::GetVirtualMemAuto() (https://github.com/OSGeo/gdal/blob/83425

[gdal-dev] Memory mapped VSILFILE ?

2023-09-04 Thread Andrew C Aitchison
Drivers work with VSILFILE objects. Sometimes these are real files but as I understand it, sometimes these are actually blocks of memory behind a file interface. Is the reverse possible, ie can I mmap a VSILFILE and then read it as if it were a block of memory ? This would be for read-only driv