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

Represents a buffer directly stored in memory. More...

#include <data_buffer.hpp>

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

Public Member Functions

 DataBufferBackingStore (c_string filename)
 
 DataBufferBackingStore (unsigned int num_bytes, uint8_t init=uint8_t(0))
 
 DataBufferBackingStore (c_array< const uint8_t > init_data)
 
c_array< uint8_t > data (void)
 

Detailed Description

Represents a buffer directly stored in memory.

Definition at line 32 of file data_buffer.hpp.

Constructor & Destructor Documentation

◆ DataBufferBackingStore() [1/3]

fastuidraw::DataBufferBackingStore::DataBufferBackingStore ( c_string  filename)

Ctor. Copies a file into memory.

Parameters
filenamename of file to open

◆ DataBufferBackingStore() [2/3]

fastuidraw::DataBufferBackingStore::DataBufferBackingStore ( unsigned int  num_bytes,
uint8_t  init = uint8_t(0) 
)
explicit

Ctor. Allocate memory and fill the buffer with a fixed value.

Parameters
num_bytesnumber of bytes to give the backing store
initinitial value to give each byte

◆ DataBufferBackingStore() [3/3]

fastuidraw::DataBufferBackingStore::DataBufferBackingStore ( c_array< const uint8_t >  init_data)
explicit

Ctor. Allocates the memory and initializes it with data.

Member Function Documentation

◆ data()

c_array<uint8_t> fastuidraw::DataBufferBackingStore::data ( void  )

Return a pointer to the backing store of the memory.


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