PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
pixelbullet::Compressor Class Reference

Static Public Member Functions

static std::vector< uint8_t > Compress (const std::vector< uint8_t > &input, int compression_level=3)
 Compresses the input data using Zstandard at the given compression level.
 
static std::vector< uint8_t > Decompress (const std::vector< uint8_t > &compressed, size_t uncompressed_size)
 Decompresses the given compressed buffer expecting the uncompressed size.
 

Member Function Documentation

◆ Compress()

std::vector< uint8_t > pixelbullet::Compressor::Compress ( const std::vector< uint8_t > & input,
int compression_level = 3 )
static

Compresses the input data using Zstandard at the given compression level.

◆ Decompress()

std::vector< uint8_t > pixelbullet::Compressor::Decompress ( const std::vector< uint8_t > & compressed,
size_t uncompressed_size )
static

Decompresses the given compressed buffer expecting the uncompressed size.


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