|
API Documentation
|
|
|
46 Buffer (
unsigned long long size) noexcept ;
53 Buffer (const
unsigned char* data,
unsigned long long size) noexcept ;
59 Buffer (std::initializer_list<
unsigned char> args) noexcept ;
100 const
unsigned char&
front () const ;
108 const
unsigned char&
back () const ;
116 const
unsigned char*
begin () const ;
124 const
unsigned char*
end () const ;
157 Buffer&
erase (
unsigned long long index,
unsigned long long count = 1ull) ;
174 unsigned char& operator[] (
unsigned long long index) ;
181 const
unsigned char& operator[] (
unsigned long long index) const ;
206 template <typename T, std::
size_t S>
207 Buffer (const std::array<T, S>& array) noexcept ;
214 template <typename T>
215 Buffer (const std::vector<T>& vec) noexcept ;
unsigned char * getData() const
Buffer & resize(unsigned long long size)
Buffer & erase(unsigned long long index, unsigned long long count=1ull)
static Buffer createAndTakeMemory(unsigned char *data, unsigned long long size)
unsigned long long _size
The size, in bytes, of the data pointed.
Definition: Buffer.h:14
unsigned char * _data
The data pointer.
Definition: Buffer.h:13
A buffer holding binary data.
Definition: Buffer.h:32
Buffer & append(unsigned char value)
Describes the data held by a buffer.
Definition: Buffer.h:12
unsigned long long getSize() const
BufferDataDescriptor relinquishDataOwnership()
Encompasses all API of component NilkinsMemory.
Definition: Allocator.h:7