MySQL 8.4.3
Source Code Documentation
binlog_reader.h File Reference
#include "sql/binlog_istream.h"
#include "sql/log_event.h"

Go to the source code of this file.

Classes

class  Default_binlog_event_allocator
 
class  Binlog_event_data_istream
 Binlog_event_data_istream fetches byte data from Basic_istream and divides them into event_data chunk according to the format. More...
 
class  Binlog_event_object_istream< EVENT_DATA_ISTREAM >
 It reads event_data from an event_data stream and deserialize them to event object. More...
 
class  IBasic_binlog_file_reader
 Interface class that all specializations of template <...> Basic_binlog_file_reader inherit from. More...
 
class  Basic_binlog_file_reader< IFILE, EVENT_DATA_ISTREAM, EVENT_OBJECT_ISTREAM, ALLOCATOR >
 It owns an allocator, a byte stream, an event_data stream and an event object stream. More...
 

Typedefs

typedef Basic_binlog_file_reader< Binlog_ifile, Binlog_event_data_istream, Binlog_event_object_istream, Default_binlog_event_allocatorBinlog_file_reader
 
typedef Basic_binlog_file_reader< Relaylog_ifile, Binlog_event_data_istream, Binlog_event_object_istream, Default_binlog_event_allocatorRelaylog_file_reader
 

Functions

Binlog_read_error::Error_type binlog_event_deserialize (const unsigned char *event_data, unsigned int event_data_len, const mysql::binlog::event::Format_description_event *fde, bool verify_checksum, Log_event **event)
 Deserialize a binlog event from event_data. More...
 

Typedef Documentation

◆ Binlog_file_reader

◆ Relaylog_file_reader

Function Documentation

◆ binlog_event_deserialize()

Binlog_read_error::Error_type binlog_event_deserialize ( const unsigned char *  event_data,
unsigned int  event_data_len,
const mysql::binlog::event::Format_description_event fde,
bool  verify_checksum,
Log_event **  event 
)

Deserialize a binlog event from event_data.

event_data is serialized event object. It is a chunk of data in buffer.

Parameters
[in]event_dataThe event data used for deserialization.
[in]event_data_lenLength of event_data
[in]fdeThe format_description_event of the event
[in]verify_checksumVerify event_data's checksum if it is true.
[out]eventthe event object generated.
Return values
Binlog_read_error::SUCCESSSuccess
Otherthan Binlog_read_error::SUCCESS Error