API Documentation
Loading...
Searching...
No Matches
Compressor Class Reference

Class which is designed to compress objects for writing to file. Typically objects are added then the compressor is run compressing all data at once. More...

#include <Compressor.h>

Static Public Member Functions

static CompressedStringInfo AddString (BinaryCompressionObject &data, const String &string)
 
template<class t_type , class t_index_type , class t_memory_allocator , class t_memory_manager >
static std::enable_if<!ObjectInfo< t_type >::Buffer >::type Compress (BinaryCompressionObject &object, Buffer< uint01 > &compression_data, const Buffer< t_type, t_index_type, t_memory_allocator, t_memory_manager > &data)
 
template<class t_type , class t_index_type , class t_memory_allocator , class t_memory_manager >
static std::enable_if< ObjectInfo< t_type >::Buffer >::type Compress (BinaryCompressionObject &object, Buffer< uint01 > &compression_data, const Buffer< t_type, t_index_type, t_memory_allocator, t_memory_manager > &data)
 
static void CompressData (BinaryCompressionObject &data)
 
template<class t_index_type , class t_memory_allocator , class t_memory_manager >
static void CompressString (BinaryCompressionObject &object, Buffer< uint01 > &compression_data, const Buffer< String, t_index_type, t_memory_allocator, t_memory_manager > &data)
 
static void DecompressData (BinaryCompressionObject &data)
 
static char * GetString (BinaryCompressionObject &data, const Bounds< 1, uint04 > &bounds)
 
static char * GetString (BinaryCompressionObject &data, uint04 index)
 
static uint04 GetStringLength (BinaryCompressionObject &data, uint04 index)
 
template<class t_type >
static CompressionMode PickCompressionMode (CompressionMode compression_mode=e_default_compression)
 
static sint04 ZLibCompress (uint01 *compressed, const uint01 *uncompressed, size_t &compressed_size, size_t decompressed_size)
 
static sint04 ZLibDecompress (const uint01 *compressed, uint01 *uncompressed, size_t compressed_size, size_t &decompressed_size)
 
static sint04 ZLibDecompressFile (File src, File output_dir)
 
static Module ZLibModule ()
 

Detailed Description

Class which is designed to compress objects for writing to file. Typically objects are added then the compressor is run compressing all data at once.


Member Function Documentation

◆ AddString()

static CompressedStringInfo AddString ( BinaryCompressionObject & data,
const String & string )
static

◆ Compress() [1/2]

template<class t_type , class t_index_type , class t_memory_allocator , class t_memory_manager >
static std::enable_if<!ObjectInfo< t_type >::Buffer >::type Compress ( BinaryCompressionObject & object,
Buffer< uint01 > & compression_data,
const Buffer< t_type, t_index_type, t_memory_allocator, t_memory_manager > & data )
inlinestatic

◆ Compress() [2/2]

template<class t_type , class t_index_type , class t_memory_allocator , class t_memory_manager >
static std::enable_if< ObjectInfo< t_type >::Buffer >::type Compress ( BinaryCompressionObject & object,
Buffer< uint01 > & compression_data,
const Buffer< t_type, t_index_type, t_memory_allocator, t_memory_manager > & data )
inlinestatic

◆ CompressData()

static void CompressData ( BinaryCompressionObject & data)
static

◆ CompressString()

template<class t_index_type , class t_memory_allocator , class t_memory_manager >
static void CompressString ( BinaryCompressionObject & object,
Buffer< uint01 > & compression_data,
const Buffer< String, t_index_type, t_memory_allocator, t_memory_manager > & data )
inlinestatic

◆ DecompressData()

static void DecompressData ( BinaryCompressionObject & data)
static

◆ GetString() [1/2]

static char * GetString ( BinaryCompressionObject & data,
const Bounds< 1, uint04 > & bounds )
static

◆ GetString() [2/2]

static char * GetString ( BinaryCompressionObject & data,
uint04 index )
static

◆ GetStringLength()

static uint04 GetStringLength ( BinaryCompressionObject & data,
uint04 index )
static

◆ PickCompressionMode()

template<class t_type >
static CompressionMode PickCompressionMode ( CompressionMode compression_mode = e_default_compression)
inlinestatic

◆ ZLibCompress()

static sint04 ZLibCompress ( uint01 * compressed,
const uint01 * uncompressed,
size_t & compressed_size,
size_t decompressed_size )
static

◆ ZLibDecompress()

static sint04 ZLibDecompress ( const uint01 * compressed,
uint01 * uncompressed,
size_t compressed_size,
size_t & decompressed_size )
static

◆ ZLibDecompressFile()

static sint04 ZLibDecompressFile ( File src,
File output_dir )
static

◆ ZLibModule()

static Module ZLibModule ( )
static

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