MySQL 8.0.40
Source Code Documentation
|
Buffers input and runs a specified callback on single complete lines found. More...
Public Member Functions | |
Line_buffer (TCallback &&line_handler) | |
~Line_buffer () | |
Runs callback for last incomplete line if present. More... | |
void | insert (const char *buffer, size_t size) |
Adds a raw buffer bytes to our buffer and finds any new completed lines to call callback on them. More... | |
Private Attributes | |
TCallback | m_line_handler |
std::string | m_curr_buffer |
Current incomplete line. More... | |
Buffers input and runs a specified callback on single complete lines found.
|
inline |
Line_buffer< TCallback >::~Line_buffer |
Runs callback for last incomplete line if present.
void Line_buffer< TCallback >::insert | ( | const char * | buffer, |
size_t | size | ||
) |
Adds a raw buffer bytes to our buffer and finds any new completed lines to call callback on them.
|
private |
Current incomplete line.
|
private |