Derived implementation of buffer
that owns the data.
More...
#include <datasource.hpp>
Public Member Functions | |
owning_buffer (Container &&data_owner) | |
Moves the input container into the newly created object. More... | |
owning_buffer (Container &&data_owner, uint8_t const *data_ptr, size_t size) | |
Moves the input container into the newly created object, and exposes a subspan of the buffer. More... | |
size_t | size () const override |
Returns the size of the buffer. More... | |
uint8_t const * | data () const override |
Returns the pointer to the data in the buffer. More... | |
Public Member Functions inherited from cudf::io::datasource::buffer | |
virtual | ~buffer () |
Base class destructor. | |
Additional Inherited Members | |
Static Public Member Functions inherited from cudf::io::datasource::buffer | |
template<typename Container > | |
static std::unique_ptr< buffer > | create (Container &&data_owner) |
Factory to construct a datasource buffer object from a container. More... | |
Derived implementation of buffer
that owns the data.
Can use different container types to hold the data buffer.
Container | Type of the container object that owns the data |
Definition at line 329 of file datasource.hpp.
|
inline |
Moves the input container into the newly created object.
data_owner | The container to construct the buffer from (ownership is transferred) |
Definition at line 336 of file datasource.hpp.
|
inline |
Moves the input container into the newly created object, and exposes a subspan of the buffer.
data_owner | The container to construct the buffer from (ownership is transferred) |
data_ptr | Pointer to the start of the subspan |
size | The size of the subspan |
Definition at line 349 of file datasource.hpp.
|
inlineoverridevirtual |
Returns the pointer to the data in the buffer.
Implements cudf::io::datasource::buffer.
Definition at line 366 of file datasource.hpp.
|
inlineoverridevirtual |
Returns the size of the buffer.
Implements cudf::io::datasource::buffer.
Definition at line 359 of file datasource.hpp.