Construct a FileMap upon the given path.
Release this mapped buffer without flushing.
Flush dirty content out to the drive.
Return a slice representing file content as a memory-mapped array
Resize the file and return the remapped content. Usage of map() is not required following this call.
void example ( ) { auto file = new MappedFile ("foo.map"); auto heap = file.resize (1_000_000); file.close(); auto file1 = new MappedFile ("foo1.map"); auto heap1 = file1.resize (1_000_000); file1.close(); }