MutableBuffer
MutableBuffer
#include <icy/buffer.h>class MutableBufferDefined in src/base/include/icy/buffer.h:40
The MutableBuffer class provides a safe representation of a buffer that can be modified. It does not own the underlying data, and so is cheap to copy or assign.
List of all members
| Name | Kind | Owner |
|---|---|---|
MutableBuffer | function | Declared here |
MutableBuffer | function | Declared here |
data | function | Declared here |
size | function | Declared here |
cstr | function | Declared here |
str | function | Declared here |
_data | variable | Declared here |
_size | variable | Declared here |
Public Methods
| Return | Name | Description |
|---|---|---|
constexpr | MutableBuffer inline constexpr | Construct an empty buffer. |
constexpr | MutableBuffer inline constexpr | Construct a buffer to represent the given memory range. |
constexpr void * | data const inline constexpr | |
constexpr size_t | size const inline constexpr | |
char * | cstr const inline | Cast the buffer as a char pointer. |
std::string | str const inline | Returns the buffer as a string. |
MutableBuffer
inline constexpr
constexpr inline constexpr MutableBuffer()Defined in src/base/include/icy/buffer.h:44
Construct an empty buffer.
MutableBuffer
inline constexpr
constexpr inline constexpr MutableBuffer(void * data, size_t size)Defined in src/base/include/icy/buffer.h:51
Construct a buffer to represent the given memory range.
data
const inline constexpr
constexpr inline constexpr void * data() constDefined in src/base/include/icy/buffer.h:57
size
const inline constexpr
constexpr inline constexpr size_t size() constDefined in src/base/include/icy/buffer.h:58
cstr
const inline
inline char * cstr() constDefined in src/base/include/icy/buffer.h:61
Cast the buffer as a char pointer.
str
const inline
inline std::string str() constDefined in src/base/include/icy/buffer.h:64
Returns the buffer as a string.
Protected Attributes
_data
void * _dataDefined in src/base/include/icy/buffer.h:67
_size
size_t _size