#include <gr_compression.h>
◆ Char_t
◆ Compress_status_t
◆ Compressor_t
◆ Managed_buffer_sequence_t
◆ enum_compression_error
Compression Error.
Enumerator |
---|
COMPRESSION_OK | |
ER_COMPRESSION_TYPE_UNKOWN | |
ER_COMPRESSION_INIT_FAILURE | |
ER_COMPRESSION_EXCEEDS_MAX_BUFFER_SIZE | |
ER_COMPRESSION_OUT_OF_MEMORY | |
◆ enum_compression_type
Compression Type.
Enumerator |
---|
NO_COMPRESSION | |
ZSTD_COMPRESSION | |
◆ GR_compress()
◆ ~GR_compress()
GR_compress::~GR_compress |
( |
| ) |
|
◆ allocate_and_get_buffer()
std::pair< unsigned char *, std::size_t > GR_compress::allocate_and_get_buffer |
( |
| ) |
|
◆ compress()
This shall compress the buffer provided and put the compressed payload into the m_managed_buffer_sequence which is non-contiguous growable memory buffer.
- Parameters
-
data | a pointer to the buffer holding the data to compress |
length | the size of the data to compress. |
- Returns
- enum_compression_error error type. The compressed data is stored in m_managed_buffer_sequence which can be retrieved using allocate_and_get_buffer().
◆ get_uncompressed_data_size()
size_t GR_compress::get_uncompressed_data_size |
( |
| ) |
|
◆ m_compressed_data_size
size_t GR_compress::m_compressed_data_size {0} |
|
private |
The compressed data size.
◆ m_compression_type
Initial value:
The compression type.
◆ m_compressor
ZSTD compressor class object.
◆ m_compressor_name
std::string GR_compress::m_compressor_name {"Zstandard"} |
|
private |
The compression library name.
◆ m_managed_buffer_sequence
The buffer holding compressed data.
◆ m_status
◆ m_uncompressed_data_size
size_t GR_compress::m_uncompressed_data_size {0} |
|
private |
The uncompressed data size.
The documentation for this class was generated from the following files: