32 #include "../api_core.h"
40 class DataBuffer_Impl;
51 DataBuffer(
const void *data,
unsigned int size);
62 const char *get_data()
const;
64 template<
typename Type>
67 template<
typename Type>
71 unsigned int get_size()
const;
74 unsigned int get_capacity()
const;
77 char &operator[](
int i);
78 const char &operator[](
int i)
const;
79 char &operator[](
unsigned int i);
80 const char &operator[](
unsigned int i)
const;
92 void set_size(
unsigned int size);
95 void set_capacity(
unsigned int capacity);
101 std::shared_ptr<DataBuffer_Impl> impl;
const Type * get_data() const
Definition: databuffer.h:68
Type * get_data()
Definition: databuffer.h:65
General purpose data buffer.
Definition: databuffer.h:43