32 this->createdBuffer =
true;
34 this->
buffer =
new vector<uint8_t>(capacity);
42 this->createdBuffer =
false;
51 inline Buffer(vector<uint8_t>* data) {
52 this->createdBuffer =
false;
Buffer * put(uint8_t value)
Put value into buffer.
uint8_t get(int32_t position)
virtual int32_t getPosition()
Buffer(Buffer *buffer)
Public constructor.
vector< uint8_t > * buffer
virtual int32_t getCapacity()
Buffer * put(const uint8_t *data, int32_t size)
Put data into buffer.
Buffer(vector< uint8_t > *data)
Public constructor.
Buffer(int32_t capacity)
Public constructor.
virtual Buffer * setPosition(int32_t position)
Set position.
virtual ~Buffer()
Destructor.