MySQL 8.4.2
Source Code Documentation
|
This is the abstract and base class for binary log codecs. More...
#include <base.h>
Public Member Functions | |
virtual std::pair< std::size_t, bool > | decode (const unsigned char *from, std::size_t size, Binary_log_event &to) const =0 |
Member function that shall decode the contents of the given buffer into a binary log event. More... | |
virtual std::pair< std::size_t, bool > | encode (const Binary_log_event &from, unsigned char *to, std::size_t size) const =0 |
Member function that shall encode the contents of the given binary log event into an in memory buffer. More... | |
virtual | ~Codec ()=default |
This is the abstract and base class for binary log codecs.
It defines the codec API. Implementations of this class must be stateless.
|
virtualdefault |
|
pure 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. |
Implemented in mysql::binlog::event::codecs::binary::Transaction_payload, mysql::binlog::event::codecs::binary::Heartbeat, and mysql::binlog::event::codecs::binary::Base_codec.
|
pure 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. |
Implemented in mysql::binlog::event::codecs::binary::Transaction_payload, mysql::binlog::event::codecs::binary::Heartbeat, and mysql::binlog::event::codecs::binary::Base_codec.