MmFile.this

this(string filename) scope

Open memory mapped file filename for reading. File is closed when the object instance is deleted.

Throws

- On POSIX, ErrnoException.
this(string filename, Mode mode, ulong size, void * address, size_t window = 0) scope

Open memory mapped file filename in mode. File is closed when the object instance is deleted.

Parameters

filenamename of the file. If null, an anonymous file mapping is created.
modeaccess mode defined above.
sizethe size of the file. If 0, it is taken to be the size of the existing file.
addressthe preferred address to map the file to, although the system is not required to honor it. If null, the system selects the most convenient address.
windowpreferred block size of the amount of data to map at one time with 0 meaning map the entire file. The window size must be a multiple of the memory allocation page size.

Throws

- On POSIX, ErrnoException.