A contract guaranteeing stream-ordered memory access to the underlying device data. More...
#include <data_chunk_source.hpp>
Public Member Functions | |
virtual char const * | data () const =0 |
Returns a pointer to the underlying device data. More... | |
virtual std::size_t | size () const =0 |
Returns the size of the underlying device data. More... | |
virtual | operator device_span< char const > () const =0 |
Returns a span over the underlying device data. More... | |
A contract guaranteeing stream-ordered memory access to the underlying device data.
This class guarantees access to the underlying data for the stream on which the data was allocated. Possible implementations may own the device data, or may only have a view over the data. Any work enqueued to the stream on which this data was allocated is guaranteed to be performed prior to the destruction of the underlying data, but otherwise no guarantees are made regarding if or when the underlying data gets destroyed.
Definition at line 44 of file data_chunk_source.hpp.
|
pure virtual |
Returns a pointer to the underlying device data.
|
pure virtual |
Returns a span over the underlying device data.
|
pure virtual |
Returns the size of the underlying device data.