![]() |
MySQL 9.2.0
Source Code Documentation
|
This is the abstract and base class for binary log BINARY codecs. More...
#include <binary.h>
Public Member Functions | |
std::pair< std::size_t, bool > | decode (const unsigned char *from, std::size_t size, Binary_log_event &to) const override=0 |
Member function that shall decode the contents of the given buffer into a binary log event. More... | |
std::pair< std::size_t, bool > | encode (const Binary_log_event &from, unsigned char *to, std::size_t size) const override=0 |
Member function that shall encode the contents of the given binary log event into an in memory buffer. More... | |
Base_codec ()=default | |
Base_codec (Base_codec &&) noexcept=default | |
Base_codec & | operator= (Base_codec &&) noexcept=default |
Base_codec (const Base_codec &) noexcept=default | |
Base_codec & | operator= (const Base_codec &)=default |
~Base_codec () override=default | |
![]() | |
virtual | ~Codec ()=default |
Protected Member Functions | |
Event_reader & | reader () |
Protected Attributes | |
Event_reader * | m_reader = nullptr |
This is the abstract and base class for binary log BINARY codecs.
|
default |
|
defaultnoexcept |
|
defaultnoexcept |
|
overridedefault |
|
overridepure virtual |
Member function that shall decode the contents of the given buffer into a binary log event.
from | the buffer containing the encoded event. |
size | the length of the data in the buffer. |
to | the binary log event to populate. |
Implements mysql::binlog::event::codecs::Codec.
Implemented in mysql::binlog::event::codecs::binary::Transaction_payload, and mysql::binlog::event::codecs::binary::Heartbeat.
|
overridepure virtual |
Member function that shall encode the contents of the given binary log event into an in memory buffer.
from | the binary log event to encode. |
to | the buffer where the encoded event should be saved into. |
size | the size of the buffer. |
Implements mysql::binlog::event::codecs::Codec.
Implemented in mysql::binlog::event::codecs::binary::Transaction_payload, and mysql::binlog::event::codecs::binary::Heartbeat.
|
defaultnoexcept |
|
default |
|
inlineprotected |
|
protected |