A general compresser.
More...
#include <compresser.hpp>
|
| ES_API (CPPESSENCE) explicit compresser(compression_mode mode) |
| Creates an instance.
|
|
| ES_API (CPPESSENCE) compresser(compresser &&) noexcept |
|
| ES_API (CPPESSENCE) ~compresser() |
|
| ES_API (CPPESSENCE) compresser &operator |
|
template<byte_like_contiguous_range Range> |
ES_API(CPPESSENCE) abi ES_API(CPPESSENCE) abi ES_API(CPPESSENCE) abi ES_API(CPPESSENCE) abi abi::vector< std::byte > | as_bytes (Range &&range, std::int32_t level) const |
| Compresses a byte buffer.
|
|
template<byte_like_contiguous_range Range> |
abi::string | as_string (Range &&range, std::int32_t level) const |
| Compresses a byte buffer as a string.
|
|
template<byte_like_contiguous_range Range> |
abi::vector< std::byte > | inverse_as_bytes (Range &&range) const |
| Decompress a byte buffer.
|
|
template<byte_like_contiguous_range Range> |
abi::string | inverse_as_string (Range &&range) const |
| Decompresses a byte buffer as a string.
|
|
◆ as_bytes()
template<byte_like_contiguous_range Range>
ES_API(CPPESSENCE) abi ES_API(CPPESSENCE) abi ES_API(CPPESSENCE) abi ES_API(CPPESSENCE) abi abi::vector< std::byte > essence::io::compresser::as_bytes |
( |
Range && | range, |
|
|
std::int32_t | level ) const |
|
inlinenodiscard |
Compresses a byte buffer.
- Parameters
-
buffer | The buffer. |
level | The compression level. |
- Returns
- The compressed data.
Compresses a byte buffer as a string.
- Parameters
-
buffer | The buffer. |
level | The compression level. |
- Returns
- The compressed data as a string.
Decompress a byte buffer.
- Parameters
-
- Returns
- The decompressed data.
Decompresses a byte buffer as a string.
- Parameters
-
- Returns
- The decompressed data.
Compresses a byte buffer.
- Template Parameters
-
Range | The type of the range. |
- Parameters
-
level | The compression level. |
- Returns
- The compressed data.
◆ as_string()
template<byte_like_contiguous_range Range>
abi::string essence::io::compresser::as_string |
( |
Range && | range, |
|
|
std::int32_t | level ) const |
|
inline |
Compresses a byte buffer as a string.
- Template Parameters
-
Range | The type of the range. |
- Parameters
-
level | The compression level. |
- Returns
- The compressed data as a string.
◆ ES_API()
essence::io::compresser::ES_API |
( |
CPPESSENCE | | ) |
|
Creates an instance.
- Parameters
-
mode | The compression mode. |
◆ inverse_as_bytes()
template<byte_like_contiguous_range Range>
abi::vector< std::byte > essence::io::compresser::inverse_as_bytes |
( |
Range && | range | ) |
const |
|
inline |
Decompress a byte buffer.
- Template Parameters
-
Range | The type of the range. |
- Returns
- The decompressed data.
◆ inverse_as_string()
template<byte_like_contiguous_range Range>
abi::string essence::io::compresser::inverse_as_string |
( |
Range && | range | ) |
const |
|
inline |
Decompresses a byte buffer as a string.
- Template Parameters
-
Range | The type of the range. |
- Returns
- The decompressed data.
The documentation for this class was generated from the following file: