Specialization for a Buffer of characters.
More...
#include <CommonDef.h>
|
| Buffer ()=default |
| Represents an empty C string literal.
|
|
| Buffer (std::string &str) |
| Implicit conversion from a std::string.
|
|
| Buffer (char *data, Size count) |
| Construction from an arbitrary buffer and size.
|
|
| Buffer (std::vector< char > &v) |
| Implicit conversion from a std::vector.
|
|
| Buffer (std::string &&str)=delete |
| Prohibit conversion from a temporary string.
|
|
| operator bool () const |
| Evaluates to true if this buffer holds valid data, false otherwise.
|
|
|
char * | data = nullptr |
| Pointer to the mutable data.
|
|
Size | count = 0 |
| Number of elements the pointer points to.
|
|
Specialization for a Buffer of characters.
◆ Buffer() [1/5]
Represents an empty C string literal.
◆ Buffer() [2/5]
Implicit conversion from a std::string.
◆ Buffer() [3/5]
Construction from an arbitrary buffer and size.
◆ Buffer() [4/5]
Implicit conversion from a std::vector.
◆ Buffer() [5/5]
Prohibit conversion from a temporary string.
◆ operator bool()
Evaluates to true if this buffer holds valid data, false otherwise.
◆ count
Number of elements the pointer points to.
◆ data
Pointer to the mutable data.