rippled
|
Functions | |
template<typename BufferFactory > | |
std::size_t | lz4Compress (void const *in, std::size_t inSize, BufferFactory &&bf) |
LZ4 block compression. More... | |
std::size_t | lz4Decompress (std::uint8_t const *in, std::size_t inSizeUnchecked, std::uint8_t *decompressed, std::size_t decompressedSizeUnchecked) |
template<typename InputStream > | |
std::size_t | lz4Decompress (InputStream &in, std::size_t inSize, std::uint8_t *decompressed, std::size_t decompressedSize) |
LZ4 block decompression. More... | |
std::size_t ripple::compression_algorithms::lz4Compress | ( | void const * | in, |
std::size_t | inSize, | ||
BufferFactory && | bf | ||
) |
LZ4 block compression.
BufferFactory | Callable object or lambda. Takes the requested buffer size and returns allocated buffer pointer. |
in | Data to compress |
inSize | Size of the data |
bf | Compressed buffer allocator |
Definition at line 44 of file CompressionAlgorithms.h.
std::size_t ripple::compression_algorithms::lz4Decompress | ( | std::uint8_t const * | in, |
std::size_t | inSizeUnchecked, | ||
std::uint8_t * | decompressed, | ||
std::size_t | decompressedSizeUnchecked | ||
) |
in | Compressed data |
inSizeUnchecked | Size of compressed data |
decompressed | Buffer to hold decompressed data |
decompressedSizeUnchecked | Size of the decompressed buffer |
Definition at line 74 of file CompressionAlgorithms.h.
std::size_t ripple::compression_algorithms::lz4Decompress | ( | InputStream & | in, |
std::size_t | inSize, | ||
std::uint8_t * | decompressed, | ||
std::size_t | decompressedSize | ||
) |
LZ4 block decompression.
InputStream | ZeroCopyInputStream |
in | Input source stream |
inSize | Size of compressed data |
decompressed | Buffer to hold decompressed data |
decompressedSize | Size of the decompressed buffer |
Definition at line 109 of file CompressionAlgorithms.h.