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

#include <Compressor.h>

Static Public Member Functions

template<class t_type >
static CompressionMode PickCompressionMode (CompressionMode compression_mode=e_default_compression)
 
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_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)
 
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 DecompressData (BinaryCompressionObject &data)
 
static void CompressData (BinaryCompressionObject &data)
 
static Module ZLibModule ()
 
static sint04 ZLibDecompress (const uint01 *compressed, uint01 *uncompressed, size_t compressed_size, size_t &decompressed_size)
 
static sint04 ZLibCompress (uint01 *compressed, const uint01 *uncompressed, size_t &compressed_size, size_t decompressed_size)
 
static sint04 ZLibDecompressFile (File src, File output_dir)
 
static CompressedStringInfo AddString (BinaryCompressionObject &data, const String &string)
 
static char * GetString (BinaryCompressionObject &data, const Bounds< 1, uint04 > &bounds)
 
static char * GetString (BinaryCompressionObject &data, uint04 index)
 
static uint04 GetStringLength (BinaryCompressionObject &data, uint04 index)
 

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: