24#ifndef MYSQL_GTID_TAG_PLAIN_H
25#define MYSQL_GTID_TAG_PLAIN_H
65 std::size_t
length()
const;
77 const unsigned char *
data()
const;
84static_assert(std::is_trivial_v<Tag_plain>);
85static_assert(std::is_standard_layout_v<Tag_plain>);
Representation of the GTID tag.
Definition: tag.h:51
Definition: buf0block_hint.cc:30
constexpr std::size_t tag_max_length
Maximal number of characters in a tag.
Definition: gtid_constants.h:44
Tag representation so that:
Definition: tag_plain.h:48
Tag_plain()=default
Default ctor.
bool is_defined() const
Checks whether tag is defined.
Definition: tag_plain.cpp:39
std::size_t length() const
Obtains tag length.
Definition: tag_plain.cpp:41
unsigned char m_data[tag_max_length+1]
null terminated tag representation
Definition: tag_plain.h:81
void set(const Tag &tag)
Sets internal data to match a given pattern.
Definition: tag_plain.cpp:47
const unsigned char * data() const
Internal data accessor (for encoding)
Definition: tag_plain.cpp:56
std::size_t to_string(char *buf) const
Copies internal tag into a given buffer.
Definition: tag_plain.cpp:31
void clear()
Clear this tag.
Definition: tag_plain.cpp:37