24#ifndef MYSQL_BINLOG_EVENT_CODECS_BASE_H
25#define MYSQL_BINLOG_EVENT_CODECS_BASE_H
52 virtual std::pair<std::size_t, bool>
decode(
const unsigned char *from,
69 std::size_t
size)
const = 0;
76namespace [[deprecated]] codecs {
This is the abstract base class for binary log events.
Definition: binlog_event.h:851
This is the abstract and base class for binary log codecs.
Definition: base.h:38
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...
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.
size_t size(const char *const c)
Definition: base64.h:46