MySQL 8.0.33
Source Code Documentation
Compressed_ostream Class Reference

#include <basic_ostream.h>

Inheritance diagram for Compressed_ostream:
[legend]

Public Member Functions

 Compressed_ostream ()
 
 ~Compressed_ostream () override
 
 Compressed_ostream (const Compressed_ostream &)=delete
 
Compressed_ostreamoperator= (const Compressed_ostream &)=delete
 
binary_log::transaction::compression::Compressorget_compressor ()
 
void set_compressor (binary_log::transaction::compression::Compressor *)
 
bool write (const unsigned char *buffer, my_off_t length) override
 Write some bytes into the output stream. More...
 
- Public Member Functions inherited from Basic_ostream
virtual ~Basic_ostream ()=default
 

Private Attributes

binary_log::transaction::compression::Compressorm_compressor
 

Constructor & Destructor Documentation

◆ Compressed_ostream() [1/2]

Compressed_ostream::Compressed_ostream ( )

◆ ~Compressed_ostream()

Compressed_ostream::~Compressed_ostream ( )
overridedefault

◆ Compressed_ostream() [2/2]

Compressed_ostream::Compressed_ostream ( const Compressed_ostream )
delete

Member Function Documentation

◆ get_compressor()

binary_log::transaction::compression::Compressor * Compressed_ostream::get_compressor ( )

◆ operator=()

Compressed_ostream & Compressed_ostream::operator= ( const Compressed_ostream )
delete

◆ set_compressor()

void Compressed_ostream::set_compressor ( binary_log::transaction::compression::Compressor c)

◆ write()

bool Compressed_ostream::write ( const unsigned char *  buffer,
my_off_t  length 
)
overridevirtual

Write some bytes into the output stream.

When all data is written into the stream successfully, then it return false. Otherwise, true is returned. It will never returns false when partial data is written into the stream.

Parameters
[in]bufferData to be written
[in]lengthLength of the data
Return values
falseSuccess.
trueError.

Implements Basic_ostream.

Member Data Documentation

◆ m_compressor

binary_log::transaction::compression::Compressor* Compressed_ostream::m_compressor
private

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