BSD style: see
license.txt
Initial release: March 2004
Kris
- class FileMap : Array ¶#
-
- this(char[] path, File.Style style = File.ReadWriteOpen) ¶#
-
Construct a FileMap upon the given path.
You should use resize() to setup the available
working space.
- ubyte[] resize(long size) [final] ¶#
-
Resize the file and return the remapped content. Usage of
map() is not required following this call
- void close() [override] ¶#
-
Release external resources
- class MappedFile ¶#
-
- this(char[] path, File.Style style = File.ReadWriteOpen) ¶#
-
Construct a FileMap upon the given path.
You should use resize() to setup the available
working space.
- long length() [final] ¶#
-
- char[] path() [final] ¶#
-
- ubyte[] resize(long size) [final] ¶#
-
Resize the file and return the remapped content. Usage of
map() is not required following this call
- ubyte[] map() [final] ¶#
-
return a slice representing file content as a
memory-mapped array
- void close() [final] ¶#
-
Release this mapping without flushing
- void reset() [private] ¶#
-
- MappedFile flush() ¶#
-
Flush dirty content out to the drive. This
fails with error 33 if the file content is
virgin. Opening a file for ReadWriteExists
followed by a flush() will cause this.