24#ifndef MYSQL_GTID_TAG_PLAIN_H 
   25#define MYSQL_GTID_TAG_PLAIN_H 
   64  std::size_t 
length() 
const;
 
   76  const unsigned char *
data() 
const;
 
   83static_assert(std::is_trivial_v<Tag_plain>);
 
   84static_assert(std::is_standard_layout_v<Tag_plain>);
 
Representation of the GTID tag.
Definition: tag.h:49
 
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:47
 
Tag_plain()=default
Default ctor.
 
bool is_defined() const
Checks whether tag is defined.
Definition: tag_plain.cpp:40
 
std::size_t length() const
Obtains tag length.
Definition: tag_plain.cpp:42
 
unsigned char m_data[tag_max_length+1]
null terminated tag representation
Definition: tag_plain.h:80
 
void set(const Tag &tag)
Sets internal data to match a given pattern.
Definition: tag_plain.cpp:48
 
const unsigned char * data() const
Internal data accessor (for encoding)
Definition: tag_plain.cpp:57
 
std::size_t to_string(char *buf) const
Copies internal tag into a given buffer.
Definition: tag_plain.cpp:32
 
void clear()
Clear this tag.
Definition: tag_plain.cpp:38