MySQL  8.0.17
Source Code Documentation
Basic_ostream Class Referenceabstract

The abstract class for basic output streams which provides write operation. More...

#include <basic_ostream.h>

Inheritance diagram for Basic_ostream:
Binlog_cache_storage Binlog_event_writer MYSQL_BIN_LOG::Binlog_ofile StringBuffer_ostream< BUFFER_SIZE > Truncatable_ostream Binlog_encryption_ostream IO_CACHE_binlog_cache_storage IO_CACHE_ostream

Public Member Functions

virtual bool write (const unsigned char *buffer, my_off_t length)=0
 Write some bytes into the output stream. More...
 
virtual ~Basic_ostream ()
 

Detailed Description

The abstract class for basic output streams which provides write operation.

Constructor & Destructor Documentation

◆ ~Basic_ostream()

virtual Basic_ostream::~Basic_ostream ( )
inlinevirtual

Member Function Documentation

◆ write()

virtual bool Basic_ostream::write ( const unsigned char *  buffer,
my_off_t  length 
)
pure virtual

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.

Implemented in Binlog_event_writer, MYSQL_BIN_LOG::Binlog_ofile, Binlog_encryption_ostream, Binlog_cache_storage, StringBuffer_ostream< BUFFER_SIZE >, IO_CACHE_ostream, and IO_CACHE_binlog_cache_storage.


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