prjxray/lib
Rick Altherr 36f429127f lib: Return a valid MemoryMappedFile for zero-length files
mmap() will fail for a zero-length mapping.  A valid object should still
be returned to signal that the file was opened to the caller but it
should have a nullptr for data and zero for size.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
2017-12-20 22:46:39 +01:00
..
include/prjxray lib: wrapper to manage memory-mapped files 2017-12-20 22:46:39 +01:00
test_data lib: Return a valid MemoryMappedFile for zero-length files 2017-12-20 22:46:39 +01:00
CMakeLists.txt lib: wrapper to manage memory-mapped files 2017-12-20 22:46:39 +01:00
memory_mapped_file.cc lib: Return a valid MemoryMappedFile for zero-length files 2017-12-20 22:46:39 +01:00
memory_mapped_file_test.cc lib: Return a valid MemoryMappedFile for zero-length files 2017-12-20 22:46:39 +01:00