ZlibDecoder

Zlib decoder that uses provided buffer to store results Doesn't use garbage collector

Constructors

this
this(ubyte[] buf)

Constructor

Members

Functions

decode
bool decode(ubyte[] input)

Decodes a stream. Returns true on success, false on error. Decoded data is stored in buffer field, the buffer is resized if necessary

free
void free()

Call this when you don't need decoded buffer anymore

reallocateBuffer
void reallocateBuffer(size_t len)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

buffer
ubyte[] buffer;
Undocumented in source.
hasEnded
bool hasEnded;
Undocumented in source.
isInitialized
bool isInitialized;
Undocumented in source.
msg
int msg;
Undocumented in source.
zlibStream
z_stream zlibStream;
Undocumented in source.

Meta