bpf::compression::ZInflater class

Represents data de-compression using ZLib

Constructors, destructors, conversion operators

ZInflater()
~ZInflater()

Public functions

void SetInput(const io::ByteBuf& deflated)
void SetInput(io::ByteBuf&& deflated)
auto GetAdler32() const -> uint32
auto Inflate(io::ByteBuf& out) -> fsize
auto Inflate(void* out, fsize size) -> fsize

Function documentation

bpf::compression::ZInflater::ZInflater()

Constructs a ZInflater

void bpf::compression::ZInflater::SetInput(const io::ByteBuf& deflated)

Parameters
deflated buffer of data to de-compress

Sets the input buffer

void bpf::compression::ZInflater::SetInput(io::ByteBuf&& deflated)

Parameters
deflated buffer of data to de-compress

Sets the input buffer

uint32 bpf::compression::ZInflater::GetAdler32() const

Returns 32 bits unsigned

Returns the Adler32 checksum value of the compressed data

fsize bpf::compression::ZInflater::Inflate(io::ByteBuf& out)

Parameters
out output buffer
Returns unsigned number of bytes written to output buffer

Inflates a part of the input buffer into the given output buffer

fsize bpf::compression::ZInflater::Inflate(void* out, fsize size)

Parameters
out output buffer
size the size of the output buffer
Returns unsigned number of bytes written to output buffer

Deflates a part of the input buffer into the given output buffer