Skip to content
Andrew Lambert edited this page Mar 15, 2017 · 33 revisions

zlib.ZStream

Class Declaration

 Public Class ZStream
 Implements zlib.CompressedStream

Notes

This represents a deflate stream. Each instance may be used either for reading(decompression), writing(compression), or both. Depending on the initialization options this class can read/write streams compressed using DEFLATE(with or without header/footer) or GZIP.

Methods

Properties

Shared Methods

Example

This example creates an in-memory compression stream by calling Constructor(MemoryBlock), and writes some data that will be compressed using GZip at maximum compression:

  Dim output As New MemoryBlock(0)
  Dim compressor As New zlib.ZStream(output, zlib.Z_BEST_COMPRESSION, zlib.Z_DEFAULT_STRATEGY, zlib.GZIP_ENCODING)
  compressor.Write("Hello, world!")
  compressor.Close

See also

Entry-level points of interest denoted by "☜"



Clone this wiki locally