10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::utl::SimpleBuffer Class Reference

#include <SimpleBuffer.h>

Detailed Description

Simple extensible binary buffer.

Inheritance diagram for tenduke::utl::SimpleBuffer:
tenduke::utl::BinaryData

Public Member Functions

virtual void append (unsigned char *newData, size_t newDataLength)
 Appends data to the buffer.
 
unsigned char * getData () const override
 Returns the data.
 
std::size_t getLength () const override
 Returns the length of data in bytes.
 

Member Function Documentation

◆ append()

void tenduke::utl::SimpleBuffer::append ( unsigned char *  newData,
size_t  newDataLength 
)
virtual

Appends data to the buffer.

Parameters
newDatadata to append
newDataLengthlength of the data to append in bytes.

◆ getData()

unsigned char * tenduke::utl::SimpleBuffer::getData ( ) const
inlineoverridevirtual

Returns the data.

DO NOT free() or delete() this: The class maintains the data. The data is mutable.

Implements tenduke::utl::BinaryData.

◆ getLength()

std::size_t tenduke::utl::SimpleBuffer::getLength ( ) const
inlineoverridevirtual

Returns the length of data in bytes.

Implements tenduke::utl::BinaryData.


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