MySQL 8.0.39
Source Code Documentation
binary_log::transaction::compression Namespace Reference

Classes

class  Compressor
 Abstract base class for compressors. More...
 
class  Decompressor
 Abstract base class for decompressors. More...
 
class  Factory
 
class  None_comp
 Compressor subclass that only copies input to output without compressing it. More...
 
class  None_dec
 Decompressor subclass that only copies input to output without decompressing it. More...
 
class  Payload_event_buffer_istream
 Stream class that yields a stream of byte buffers, each holding the raw decompressed data of one event contained in a Transaction_payload_log_event. More...
 
class  Zstd_comp
 Compressor class that uses the ZSTD library. More...
 
class  Zstd_dec
 Decompressor class that uses the ZSTD library. More...
 

Typedefs

using Compress_status = mysqlns::buffer::Grow_status
 

Enumerations

enum  type { ZSTD = 0 , NONE = 255 }
 
enum class  Decompress_status {
  success , out_of_memory , exceeds_max_size , truncated ,
  corrupted , end
}
 

Functions

template<class T >
bool type_is_valid (T t)
 
std::string type_to_string (type t)
 
std::string_view debug_string (Decompress_status status)
 
std::ostream & operator<< (std::ostream &stream, Decompress_status status)
 

Typedef Documentation

◆ Compress_status

Enumeration Type Documentation

◆ Decompress_status

Enumerator
success 

Decompression succeeded.

out_of_memory 

Memory allocation failed.

exceeds_max_size 

Requested size exceeds configured maximum.

truncated 

There were remaining bytes, but less than requested.

corrupted 

Compression library reported an error.

end 

Zero remaining bytes.

◆ type

Enumerator
ZSTD 
NONE 

Function Documentation

◆ debug_string()

std::string_view binary_log::transaction::compression::debug_string ( Decompress_status  status)

◆ operator<<()

std::ostream & binary_log::transaction::compression::operator<< ( std::ostream &  stream,
Decompress_status  status 
)

◆ type_is_valid()

template<class T >
bool binary_log::transaction::compression::type_is_valid ( t)

◆ type_to_string()

std::string binary_log::transaction::compression::type_to_string ( type  t)