tp::HostMappedMemoryBase class

Shared base implementation of mapped tp::Buffer memory accessor.

Derived classes

class HostAccessibleMemory
Represents tp::Buffer memory mapped for generic host access. Pointers are valid for the duration of the lifetime of this object and that of the mapped buffer.
class HostReadableMemory
Represents tp::Buffer memory mapped for host read-only operations. Pointers are valid for the duration of the lifetime of this object and that of the mapped buffer.
class HostWritableMemory
Represents tp::Buffer memory mapped for host write-only operations. Intended for uploading data to the device.

Public functions

auto getSize() const -> uint64_t
Returns the size of the mapped memory in bytes.
auto isNull() const -> bool
Returns true if no memory is mapped.