OGLplus  (0.59.0) a C++ wrapper for rendering APIs

Class implementing data compression and decompresson. More...

#include <eagine/compression.hpp>

Public Types

using data_handler = callable_ref< bool(memory::const_block)>
 Alias for data handler callable type.
 

Public Member Functions

 data_compressor ()
 Default constructor.
 
auto compress (memory::const_block input, const data_handler &handler, data_compression_level level) -> bool
 Compress the input block, passing the packed data to handler.
 
auto compress (memory::const_block input, memory::buffer &output, data_compression_level level) -> memory::const_block
 Compress the input block, writing the compressed data to output.
 
auto compress (memory::const_block input, memory::buffer &output) -> memory::const_block
 Compress the input block, writing the compressed data to output.
 
auto compress (memory::const_block input, data_compression_level level) -> memory::const_block
 Compress the input block into internal buffer, returns const view.
 
auto decompress (memory::const_block input, const data_handler &handler) -> bool
 Decompress the input block, passing the unpacked data to handler.
 
auto decompress (memory::const_block input, memory::buffer &output) -> memory::const_block
 Decompress the input block, writing the unpacked data to output.
 
auto decompress (memory::const_block input) -> memory::const_block
 Decompress the input block into internal buffer, returns const view.
 

Detailed Description

Class implementing data compression and decompresson.


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

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).