TZlibTransport

zlib transport. Compresses (deflates) data before writing it to the underlying transport, and decompresses (inflates) it after reading.

Constructors

this
this(TTransport transport, size_t urbufSize, size_t crbufSize, size_t uwbufSize, size_t cwbufSize)

Constructs a new zlib transport.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

borrow
const(ubyte)[] borrow(ubyte* buf, size_t len)
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
consume
void consume(size_t len)
Undocumented in source. Be warned that the author may not have intended to support it.
finish
void finish()

Finalize the zlib stream.

flush
void flush()
Undocumented in source. Be warned that the author may not have intended to support it.
isOpen
bool isOpen()
Undocumented in source. Be warned that the author may not have intended to support it.
open
void open()
Undocumented in source. Be warned that the author may not have intended to support it.
peek
bool peek()
Undocumented in source. Be warned that the author may not have intended to support it.
read
size_t read(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
underlyingTransport
TTransport underlyingTransport()

Returns the wrapped transport.

verifyChecksum
void verifyChecksum()

Verify the checksum at the end of the zlib stream (by finish()).

write
void write(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

DEFAULT_CRBUF_SIZE
enum DEFAULT_CRBUF_SIZE;
Undocumented in source.
DEFAULT_CWBUF_SIZE
enum DEFAULT_CWBUF_SIZE;
Undocumented in source.
DEFAULT_URBUF_SIZE
enum DEFAULT_URBUF_SIZE;
Undocumented in source.
DEFAULT_UWBUF_SIZE
enum DEFAULT_UWBUF_SIZE;
Undocumented in source.

Inherited Members

From TBaseTransport

isOpen
bool isOpen()
Undocumented in source. Be warned that the author may not have intended to support it.
peek
bool peek()
Undocumented in source. Be warned that the author may not have intended to support it.
open
void open()
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
read
size_t read(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
readAll
void readAll(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
readEnd
size_t readEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
writeEnd
size_t writeEnd()
Undocumented in source. Be warned that the author may not have intended to support it.
flush
void flush()
Undocumented in source. Be warned that the author may not have intended to support it.
borrow
const(ubyte)[] borrow(ubyte* buf, size_t len)
Undocumented in source. Be warned that the author may not have intended to support it.
consume
void consume(size_t len)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta