MappedMemory

Memory implementation encapsulating a memory-mapped file. When the last reference is released, the file is unmapped.

Constructors

this
this(string name, MmMode mode, size_t from, size_t to)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

setSize
void setSize(size_t newSize)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

capacity
size_t capacity [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
contents
inout(ubyte)[] contents [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
size_t size [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

mappedData
ubyte[] mappedData;

View of the mapped file data.

mmFile
typeof(scoped!MmFile(null)) mmFile;

The MmFile object.

Inherited Members

From Memory

referenceCount
sizediff_t referenceCount;

Reference count.

contents
inout(ubyte)[] contents [@property getter]
Undocumented in source.
size
size_t size [@property getter]
Undocumented in source.
setSize
void setSize(size_t newSize)
Undocumented in source.
capacity
size_t capacity [@property getter]
Undocumented in source.
~this
~this()
Undocumented in source.

Meta