Implementation for non owning buffer where datasource holds buffer until destruction. More...
#include <datasource.hpp>
Public Member Functions | |
| non_owning_buffer (uint8_t const *data, size_t size) | |
| Construct a new non owning buffer object. More... | |
| size_t | size () const override |
| Returns the size of the buffer. More... | |
| uint8_t const * | data () const override |
| Returns the pointer to the buffer. More... | |
Public Member Functions inherited from cudf::io::datasource::buffer | |
| virtual | ~buffer ()=default |
| 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... | |
Implementation for non owning buffer where datasource holds buffer until destruction.
Definition at line 321 of file datasource.hpp.
|
inline |
Construct a new non owning buffer object.
| data | The data buffer |
| size | The size of the data buffer |
Definition at line 331 of file datasource.hpp.
|
inlineoverridevirtual |
Returns the pointer to the buffer.
Implements cudf::io::datasource::buffer.
Definition at line 345 of file datasource.hpp.
|
inlineoverridevirtual |
Returns the size of the buffer.
Implements cudf::io::datasource::buffer.
Definition at line 338 of file datasource.hpp.