FastUIDraw
Public Member Functions | List of all members
fastuidraw::DataBufferBase Class Reference

Base class for passing around buffers of data; derived classes have the responsibility of maintaining storage cleanup at destruction. More...

#include <data_buffer_base.hpp>

Inheritance diagram for fastuidraw::DataBufferBase:
Inheritance graph
[legend]

Public Member Functions

 DataBufferBase (c_array< const uint8_t > pdata_ro, c_array< uint8_t > pdata_rw)
 
c_array< const uint8_t > data_ro (void) const
 
c_array< uint8_t > data_rw (void)
 
- Public Member Functions inherited from fastuidraw::reference_counted_base< T, Counter >
 reference_counted_base (void)
 

Additional Inherited Members

- Static Public Member Functions inherited from fastuidraw::reference_counted_base< T, Counter >
static void add_reference (const reference_counted_base< T, Counter > *p)
 
static void remove_reference (const reference_counted_base< T, Counter > *p)
 

Detailed Description

Base class for passing around buffers of data; derived classes have the responsibility of maintaining storage cleanup at destruction.

Definition at line 37 of file data_buffer_base.hpp.

Constructor & Destructor Documentation

◆ DataBufferBase()

fastuidraw::DataBufferBase::DataBufferBase ( c_array< const uint8_t >  pdata_ro,
c_array< uint8_t >  pdata_rw 
)
inline

Ctor.

Parameters
pdata_rovalue which data_ro() will return
pdata_rwvalue which data_rw() will return

Definition at line 45 of file data_buffer_base.hpp.

Member Function Documentation

◆ data_ro()

c_array<const uint8_t> fastuidraw::DataBufferBase::data_ro ( void  ) const
inline

Return the memory as read-only

Definition at line 55 of file data_buffer_base.hpp.

◆ data_rw()

c_array<uint8_t> fastuidraw::DataBufferBase::data_rw ( void  )
inline

Return the memory as read-write

Definition at line 64 of file data_buffer_base.hpp.


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