MySQL 8.0.39
Source Code Documentation
Binlog_sender::Event_allocator Class Reference

Binlog_sender reads events one by one. More...

Public Types

enum  { DELEGATE_MEMORY_TO_EVENT_OBJECT = false }
 

Public Member Functions

void set_sender (Binlog_sender *sender)
 
unsigned char * allocate (size_t size)
 
void deallocate (unsigned char *ptr)
 

Private Attributes

Binlog_senderm_sender = nullptr
 

Detailed Description

Binlog_sender reads events one by one.

It uses the preallocated memory (A String object) to store all event_data instead of allocating memory when reading each event_data. So event should not free the memory at destructor.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
DELEGATE_MEMORY_TO_EVENT_OBJECT 

Member Function Documentation

◆ allocate()

unsigned char * Binlog_sender::Event_allocator::allocate ( size_t  size)
inline

◆ deallocate()

void Binlog_sender::Event_allocator::deallocate ( unsigned char *  ptr)
inline

◆ set_sender()

void Binlog_sender::Event_allocator::set_sender ( Binlog_sender sender)
inline

Member Data Documentation

◆ m_sender

Binlog_sender* Binlog_sender::Event_allocator::m_sender = nullptr
private

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