Derived implementation of buffer
that owns the data.
More...
#include <datasource.hpp>
Public Member Functions | |
owning_buffer (Container &&moved_data_owner) | |
Moves the input container into the newly created object. More... | |
owning_buffer (Container &&moved_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 336 of file datasource.hpp.
|
inline |
Moves the input container into the newly created object.
moved_data_owner | The container to construct the buffer from. Callers should explicitly pass std::move(data_owner) to this function to transfer the ownership. |
Definition at line 349 of file datasource.hpp.
|
inline |
Moves the input container into the newly created object, and exposes a subspan of the buffer.
moved_data_owner | The container to construct the buffer from. Callers should explicitly pass std::move(data_owner) to this function to transfer the ownership. |
data_ptr | Pointer to the start of the subspan |
size | The size of the subspan |
Definition at line 363 of file datasource.hpp.
|
inlineoverridevirtual |
Returns the pointer to the data in the buffer.
Implements cudf::io::datasource::buffer.
Definition at line 380 of file datasource.hpp.
|
inlineoverridevirtual |
Returns the size of the buffer.
Implements cudf::io::datasource::buffer.
Definition at line 373 of file datasource.hpp.