MySQL  8.0.19
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  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 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 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::SUCCEEDSucceed
Otherthan Binlog_read_error::SUCCEED Error