|
| template<typename T> |
| | DataBuffer (const std::vector< T > &vect) |
| | Constructor from a vector of type T.
|
| | DataBuffer (const String &str) |
| | Constructor from string.
|
| | DataBuffer (const std::string &str) |
| | Constructor from std string.
|
| | DataBuffer (void const *data, size_t size) |
| | Constructor from data and size.
|
| | DataBuffer (int size) |
| | Constructor and reserve the given size.
|
|
| DataBuffer (const DataBuffer &)=default |
| | Default copy constructor.
|
|
| DataBuffer (DataBuffer &&)=default |
| | Default move constructor noexcept is deduced.
|
| DataBuffer & | operator= (const DataBuffer &data)=default |
| | Default copy assignment.
|
| DataBuffer & | operator= (DataBuffer &&data)=default |
| | Default move assignment.
|
| bool | operator== (DataBuffer const &data) const noexcept |
| | Comparison operator equal.
|
| bool | operator!= (DataBuffer const &data) const noexcept |
| | Comparison operator not equal.
|
| int | size () const noexcept |
| | Gets the size of the data buffer in bytes.
|
| bool | empty () const noexcept |
| | Check if data buffer is empty.
|
| template<typename TData = void> |
| const TData * | getBytes () const noexcept |
| | Get const pointer to the bytes in the buffer.
|
| template<typename TData = void> |
| TData * | getBytes () noexcept |
| | Get pointer to the bytes in the buffer.
|
| int | setData (void const *data, int size) noexcept |
| | Sets the new content for the data buffer.
|
| int | reserve (int size) noexcept |
| | Reserve data size.
|
| String | toString () const noexcept |
| | Convert binary data to base64 string.
|
| DataBuffer & | fromString (const String &str) noexcept |
| | Convert base64 string to binary data.
|
| virtual void | attach (void *data, int size) noexcept |
| | Attach object to binary buffer.
|
DataBuffer object.
Implements share-read / copy-on-write Api object over IDataBuffer.