Tag representation so that:
More...
#include <tag_plain.h>
Tag representation so that:
- Tag_plain is trivial
- Tag_plain is standard layout Therefore, a Tag_plain object is not empty by default! Use clear() or brace-enclosed initializer list to create an empty tag. Tag_plain must be a POD because it is used in Gtid_specification
◆ Tag_plain() [1/2]
mysql::gtid::Tag_plain::Tag_plain |
( |
| ) |
|
|
default |
◆ Tag_plain() [2/2]
mysql::gtid::Tag_plain::Tag_plain |
( |
const Tag & |
tag | ) |
|
|
explicit |
Construct from tag object.
- Parameters
-
◆ clear()
void mysql::gtid::Tag_plain::clear |
( |
| ) |
|
◆ data()
const unsigned char * mysql::gtid::Tag_plain::data |
( |
| ) |
const |
Internal data accessor (for encoding)
◆ is_defined()
bool mysql::gtid::Tag_plain::is_defined |
( |
| ) |
const |
Checks whether tag is defined.
- Return values
-
true | Tag is defined |
false | Tag is empty |
◆ length()
std::size_t mysql::gtid::Tag_plain::length |
( |
| ) |
const |
Obtains tag length.
- Returns
- tag length
◆ set()
void mysql::gtid::Tag_plain::set |
( |
const Tag & |
tag | ) |
|
Sets internal data to match a given pattern.
- Parameters
-
[in] | tag | Pattern to copy from |
◆ to_string()
std::size_t mysql::gtid::Tag_plain::to_string |
( |
char * |
buf | ) |
const |
Copies internal tag into a given buffer.
- Parameters
-
[in,out] | buf | Buffer, needs to be pre-allocated |
- Returns
- Number of bytes written into the buffer
◆ m_data
null terminated tag representation
The documentation for this struct was generated from the following files: