libcudf
24.04.00
|
Interface class for buffers that the datasource returns to the caller. More...
#include <datasource.hpp>
Public Member Functions | |
virtual size_t | size () const =0 |
Returns the buffer size in bytes. More... | |
virtual uint8_t const * | data () const =0 |
Returns the address of the data in the buffer. More... | |
virtual | ~buffer () |
Base class destructor. | |
Static Public Member Functions | |
template<typename Container > | |
static std::unique_ptr< buffer > | create (Container &&data_owner) |
Factory to construct a datasource buffer object from a container. More... | |
Interface class for buffers that the datasource returns to the caller.
Provides a basic interface to return the data address and size.
Definition at line 50 of file datasource.hpp.
|
inlinestatic |
Factory to construct a datasource buffer object from a container.
Container | Type of the container to construct the buffer from |
data_owner | The container to construct the buffer from (ownership is transferred) |
Definition at line 79 of file datasource.hpp.
|
pure virtual |
Returns the address of the data in the buffer.
Implemented in cudf::io::datasource::owning_buffer< Container >, and cudf::io::datasource::non_owning_buffer.
|
pure virtual |
Returns the buffer size in bytes.
Implemented in cudf::io::datasource::owning_buffer< Container >, and cudf::io::datasource::non_owning_buffer.