10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
SimpleBuffer.h
1
#ifndef TENDUKE_UTL_SIMPLEBUFFER_H
2
#define TENDUKE_UTL_SIMPLEBUFFER_H
3
4
#include "./BinaryData.h"
5
6
namespace
tenduke
{
namespace
utl
{
7
8
12
class
SimpleBuffer :
public
BinaryData
13
{
14
public
:
15
SimpleBuffer();
16
~SimpleBuffer()
override
;
17
23
virtual
void
append
(
unsigned
char
*newData,
size_t
newDataLength);
24
25
// tenduke::utl::BinaryData interface
26
unsigned
char
*
getData
()
const override
{
return
data_;}
27
std::size_t
getLength
()
const override
{
return
length_;}
28
29
private
:
30
unsigned
char
* data_;
31
std::size_t length_;
32
};
33
34
35
}}
36
37
#endif
// TENDUKE_UTL_SIMPLEBUFFER_H
tenduke::utl::BinaryData
A holder of binary data.
Definition
BinaryData.h:14
tenduke::utl::SimpleBuffer::getData
unsigned char * getData() const override
Returns the data.
Definition
SimpleBuffer.h:26
tenduke::utl::SimpleBuffer::append
virtual void append(unsigned char *newData, size_t newDataLength)
Appends data to the buffer.
Definition
SimpleBuffer.cpp:21
tenduke::utl::SimpleBuffer::getLength
std::size_t getLength() const override
Returns the length of data in bytes.
Definition
SimpleBuffer.h:27
tenduke::utl
Utilities.
Definition
Base64Decoder.h:10
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
core
src
utl
SimpleBuffer.h
Generated by
1.17.0