class
ZDeflaterContents
Represents data compression using ZLib
Constructors, destructors, conversion operators
-
ZDeflater(ECompressionLevel level = ECompressionLevel::
DEFAULT) explicit - ~ZDeflater()
Public functions
-
void SetInput(const io::
ByteBuf& inflated) -
void SetInput(io::
ByteBuf&& inflated) - auto GetAdler32() const -> uint32
-
auto Deflate(io::
ByteBuf& out) -> fsize - auto Deflate(void* out, fsize size) -> fsize
Function documentation
bpf:: compression:: ZDeflater:: ZDeflater(ECompressionLevel level = ECompressionLevel:: DEFAULT) explicit
Parameters | |
---|---|
level | the compression level |
Constructs a ZDeflater
void bpf:: compression:: ZDeflater:: SetInput(const io:: ByteBuf& inflated)
Parameters | |
---|---|
inflated | buffer of data to compress |
Sets the input buffer
void bpf:: compression:: ZDeflater:: SetInput(io:: ByteBuf&& inflated)
Parameters | |
---|---|
inflated | buffer of data to compress |
Sets the input buffer
uint32 bpf:: compression:: ZDeflater:: GetAdler32() const
Returns | 32 bits unsigned |
---|
Returns the Adler32 checksum value of the compressed data
fsize bpf:: compression:: ZDeflater:: Deflate(io:: ByteBuf& out)
Parameters | |
---|---|
out | output buffer |
Returns | unsigned number of bytes written to output buffer |
Deflates a part of the input buffer into the given output buffer