MySQL 8.0.40
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 () override=default | |
Public Member Functions inherited from binary_log::codecs::Codec | |
virtual | ~Codec ()=default |
Protected Member Functions | |
Event_reader & | reader () |
Protected Attributes | |
Event_reader * | m_reader |
This is the abstract and base class for binary log BINARY codecs.
|
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 binary_log::codecs::Codec.
Implemented in binary_log::codecs::binary::Transaction_payload, and binary_log::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 binary_log::codecs::Codec.
Implemented in binary_log::codecs::binary::Transaction_payload, and binary_log::codecs::binary::Heartbeat.
|
inlineprotected |
|
protected |