View source code Display the source code in std/mmfile.d from which this page was generated on github. Improve this page Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone. Page wiki View or edit the community-maintained wiki page associated with this page.

std.mmfile.mm_file.this - multiple declarations

Function MmFile.this

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

Prototype

this(
  string filename
);

Throws

std.file.FileException

Function MmFile.this

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

Prototype

this(
  string filename,
  MmFile.Mode mode,
  ulong size,
  void* address,
  ulong window = 0LU
);

Parameters

NameDescription
filename name of the file. If null, an anonymous file mapping is created.
mode access mode defined above.
size the size of the file. If 0, it is taken to be the size of the existing file.
address the 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.
window preferred 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

std.file.FileException

Authors

Walter Bright, Matthew Wilson

License

Boost License 1.0.

Comments