Public Member Functions | List of all members
cudf::io::datasource::non_owning_buffer Class Reference

Implementation for non owning buffer where datasource holds buffer until destruction. More...

#include <datasource.hpp>

Inheritance diagram for cudf::io::datasource::non_owning_buffer:
cudf::io::datasource::buffer

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 ()
 Base class destructor.
 

Additional Inherited Members

- Static Public Member Functions inherited from cudf::io::datasource::buffer
template<typename Container >
static std::unique_ptr< buffercreate (Container &&data_owner)
 Factory to construct a datasource buffer object from a container. More...
 

Detailed Description

Implementation for non owning buffer where datasource holds buffer until destruction.

Definition at line 290 of file datasource.hpp.

Constructor & Destructor Documentation

◆ non_owning_buffer()

cudf::io::datasource::non_owning_buffer::non_owning_buffer ( uint8_t const *  data,
size_t  size 
)
inline

Construct a new non owning buffer object.

Parameters
dataThe data buffer
sizeThe size of the data buffer

Definition at line 300 of file datasource.hpp.

Member Function Documentation

◆ data()

uint8_t const* cudf::io::datasource::non_owning_buffer::data ( ) const
inlineoverridevirtual

Returns the pointer to the buffer.

Returns
Pointer to the buffer

Implements cudf::io::datasource::buffer.

Definition at line 314 of file datasource.hpp.

◆ size()

size_t cudf::io::datasource::non_owning_buffer::size ( ) const
inlineoverridevirtual

Returns the size of the buffer.

Returns
The size of the buffer in bytes

Implements cudf::io::datasource::buffer.

Definition at line 307 of file datasource.hpp.


The documentation for this class was generated from the following file: