class
HostWritableMemoryRepresents tp::
Base classes
- class HostMappedMemoryBase
- Shared base implementation of mapped tp::
Buffer memory accessor.
Constructors, destructors, conversion operators
- HostWritableMemory()
- Constructs a null tp::
HostWritableMemory.
Public functions
-
template<typename T = void>auto getPtrUnsafe() -> T*
- Returns a pointer to the mapped memory interpreted as the given type.
-
template<typename T>void write(uint64_t byteOffset, ArrayParameter<const T> srcView)
- Copies the given data view into the mapped memory at the given byte offset.
-
template<typename T = std::byte>void write(uint64_t byteOffset, const T* srcPtr, uint64_t count)
- Copies the given data range into the mapped memory at the given byte offset.
- void write(uint64_t byteOffset, uint8_t value, uint64_t byteCount)
- Writes a number of bytes with the given value into the mapped memory at the given byte offset.
Function documentation
template<typename T = void>
T* tp:: HostWritableMemory:: getPtrUnsafe()
Returns a pointer to the mapped memory interpreted as the given type.