MemoryMap

Holds a memory mapping to host visible memory. Memory is unmapped when object goes out of scope. It also acts as a void[], and allows to get a typed slice view on the data.

Constructors

this
this(DeviceMemory dm, size_t offset, void[] data, void delegate() unmap)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

addToSet
void addToSet(MappedMemorySet set)
Undocumented in source. Be warned that the author may not have intended to support it.
opDollar
size_t opDollar()
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
void[] opIndex(size_t[2] slice)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
void[] opIndex()
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
void opIndexAssign(void[] vals)
Undocumented in source. Be warned that the author may not have intended to support it.
opIndexAssign
void opIndexAssign(void[] vals, size_t[2] slice)
Undocumented in source. Be warned that the author may not have intended to support it.
opSlice
size_t[2] opSlice(size_t beg, size_t end)
Undocumented in source. Be warned that the author may not have intended to support it.
view
auto view(size_t offset, size_t count)

Get a typed view on the memory map that support slice and indexing operations.

Meta