VitroIO SDK
Software development kit for Vitro Shard.
Loading...
Searching...
No Matches
vitroio::sdk::impl::Buffer Class Reference

#include <buffer.h>

Public Member Functions

 Buffer ()
 
 ~Buffer ()
 
bool alloc (uint32_t size, uint8_t defaultValue=0)
 
void free ()
 
uint32_t availableSize () const
 
uint32_t size () const
 
uint32_t freeSize () const
 
bool resize (uint32_t size)
 
uint8_t * get ()
 
const uint8_t * get () const
 
uint32_t set (uint8_t *data, uint32_t size)
 
void clear (uint32_t newSize=0, uint8_t defaultValue=0)
 
bool isEmpty () const
 
bool isFull () const
 
 operator bool () const
 

Constructor & Destructor Documentation

◆ Buffer()

vitroio::sdk::impl::Buffer::Buffer ( )
inline

◆ ~Buffer()

vitroio::sdk::impl::Buffer::~Buffer ( )
inline
Here is the call graph for this function:

Member Function Documentation

◆ alloc()

bool vitroio::sdk::impl::Buffer::alloc ( uint32_t  size,
uint8_t  defaultValue = 0 
)
inline
Here is the call graph for this function:

◆ availableSize()

uint32_t vitroio::sdk::impl::Buffer::availableSize ( ) const
inline

◆ clear()

void vitroio::sdk::impl::Buffer::clear ( uint32_t  newSize = 0,
uint8_t  defaultValue = 0 
)
inline

◆ free()

void vitroio::sdk::impl::Buffer::free ( )
inline
Here is the caller graph for this function:

◆ freeSize()

uint32_t vitroio::sdk::impl::Buffer::freeSize ( ) const
inline
Here is the caller graph for this function:

◆ get() [1/2]

uint8_t * vitroio::sdk::impl::Buffer::get ( )
inline

◆ get() [2/2]

const uint8_t * vitroio::sdk::impl::Buffer::get ( ) const
inline

◆ isEmpty()

bool vitroio::sdk::impl::Buffer::isEmpty ( ) const
inline

◆ isFull()

bool vitroio::sdk::impl::Buffer::isFull ( ) const
inline

◆ operator bool()

vitroio::sdk::impl::Buffer::operator bool ( ) const
inline

◆ resize()

bool vitroio::sdk::impl::Buffer::resize ( uint32_t  size)
inline
Here is the call graph for this function:

◆ set()

uint32_t vitroio::sdk::impl::Buffer::set ( uint8_t *  data,
uint32_t  size 
)
inline
Here is the call graph for this function:

◆ size()

uint32_t vitroio::sdk::impl::Buffer::size ( ) const
inline
Here is the caller graph for this function: