MySQL 26.7.0
Source Code Documentation
Event_payload Struct Reference

Helper structure used by the reader to aggregate payload and information needed to decode an event. More...

#include <binlog_reader.h>

Public Member Functions

 Event_payload (uint8_t *data, std::size_t length, bool verify_checksum)
 Construct from payload data and metadata. More...
 
 Event_payload ()=default
 Default constructor. More...
 

Public Attributes

uint8_t * m_data
 Allocated dynamic array containing payload raw bytes. More...
 
std::size_t m_length
 length Length of the event More...
 
bool m_verify_checksum {false}
 Parameter used by the reader to identify if checksum of the event should be checked after event decoding. More...
 

Detailed Description

Helper structure used by the reader to aggregate payload and information needed to decode an event.

Constructor & Destructor Documentation

◆ Event_payload() [1/2]

Event_payload::Event_payload ( uint8_t *  data,
std::size_t  length,
bool  verify_checksum 
)
inline

Construct from payload data and metadata.

Parameters
dataAllocated dynamic array containing payload raw bytes
lengthLength of the event
verify_checksumParameter used by the reader to identify if checksum of the event should be checked after event decoding

◆ Event_payload() [2/2]

Event_payload::Event_payload ( )
default

Default constructor.

Member Data Documentation

◆ m_data

uint8_t* Event_payload::m_data

Allocated dynamic array containing payload raw bytes.

This is owning pointer of the data

◆ m_length

std::size_t Event_payload::m_length

length Length of the event

◆ m_verify_checksum

bool Event_payload::m_verify_checksum {false}

Parameter used by the reader to identify if checksum of the event should be checked after event decoding.


The documentation for this struct was generated from the following file: