MySQL 8.0.39
Source Code Documentation
|
Truncatable_ostream abstract class provides seek() and truncate() interfaces to all truncatable output streams. More...
#include <basic_ostream.h>
Public Member Functions | |
virtual bool | truncate (my_off_t offset)=0 |
Truncate some data at the end of the output stream. More... | |
virtual bool | seek (my_off_t offset)=0 |
Put the write position to a given offset. More... | |
virtual bool | flush ()=0 |
Flush data. More... | |
virtual bool | sync ()=0 |
Sync. More... | |
~Truncatable_ostream () override=default | |
Public Member Functions inherited from Basic_ostream | |
virtual bool | write (const unsigned char *buffer, my_off_t length)=0 |
Write some bytes into the output stream. More... | |
virtual | ~Basic_ostream ()=default |
Truncatable_ostream abstract class provides seek() and truncate() interfaces to all truncatable output streams.
|
overridedefault |
|
pure virtual |
Flush data.
false | Success. |
true | Error. |
Implemented in IO_CACHE_ostream, IO_CACHE_binlog_cache_storage, and Binlog_encryption_ostream.
|
pure virtual |
Put the write position to a given offset.
The offset counts from the beginning of the file.
[in] | offset | Where the write position will be |
false | Success |
true | Error |
Implemented in IO_CACHE_ostream, IO_CACHE_binlog_cache_storage, and Binlog_encryption_ostream.
|
pure virtual |
Sync.
false | Success |
true | Error |
Implemented in IO_CACHE_ostream, IO_CACHE_binlog_cache_storage, and Binlog_encryption_ostream.
|
pure virtual |
Truncate some data at the end of the output stream.
[in] | offset | Where the output stream will be truncated to. |
false | Success |
true | Error |
Implemented in IO_CACHE_ostream, IO_CACHE_binlog_cache_storage, and Binlog_encryption_ostream.