MySQL 9.0.0
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:
[legend]

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 ()=default
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ~Basic_ostream()

virtual Basic_ostream::~Basic_ostream ( )
virtualdefault

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 Transaction_message, Transaction_with_guarantee_message, IO_CACHE_ostream, StringBuffer_ostream< BUFFER_SIZE >, Compressed_ostream, MYSQL_BIN_LOG::Binlog_ofile, Binlog_event_writer, IO_CACHE_binlog_cache_storage, Binlog_cache_storage, and Binlog_encryption_ostream.


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