[gdal-dev] Memory mapped VSILFILE ?
Andrew C Aitchison
andrew at aitchison.me.uk
Mon Sep 4 23:39:38 PDT 2023
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 drivers.
There will inevitably be endian issues, but I have come across
several file formats that look to me to be designed to be read
this way, especially the header structures.
Thanks,
--
Andrew C. Aitchison Kendal, UK
andrew at aitchison.me.uk
More information about the gdal-dev
mailing list