Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
WriteBuffer Class Reference

#include <write_buffer.h>

Public Member Functions

 WriteBuffer ()
 
void Append (const void *data, size_t size)
 
void Reserve (size_t size)
 
void Overwrite (const void *data, size_t size, size_t offset)
 
std::shared_ptr< u8Data () const
 
size_t Size () const
 

Private Member Functions

void EnsureSufficientCapacity (size_t size)
 

Private Attributes

size_t m_capacity
 
std::shared_ptr< u8m_data
 
size_t m_size
 

Constructor & Destructor Documentation

◆ WriteBuffer()

WriteBuffer::WriteBuffer ( )

Member Function Documentation

◆ Append()

void WriteBuffer::Append ( const void *  data,
size_t  size 
)

◆ Data()

std::shared_ptr< u8 > WriteBuffer::Data ( ) const
inline

◆ EnsureSufficientCapacity()

void WriteBuffer::EnsureSufficientCapacity ( size_t  size)
private

◆ Overwrite()

void WriteBuffer::Overwrite ( const void *  data,
size_t  size,
size_t  offset 
)

◆ Reserve()

void WriteBuffer::Reserve ( size_t  size)

◆ Size()

size_t WriteBuffer::Size ( ) const
inline

Member Data Documentation

◆ m_capacity

size_t WriteBuffer::m_capacity
private

◆ m_data

std::shared_ptr<u8> WriteBuffer::m_data
private

◆ m_size

size_t WriteBuffer::m_size
private

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