Skip to content

zlib.ZStream.CreatePipe

Andrew Lambert edited this page Nov 26, 2022 · 13 revisions

zlib.ZStream.CreatePipe (Deprecated)

Method Signature

 Shared Function CreatePipe(InputStream As Readable, OutputStream As Writeable, CompressionLevel As Integer = zlib.Z_DEFAULT_COMPRESSION, CompressionStrategy As Integer = zlib.Z_DEFAULT_STRATEGY, Encoding As Integer = zlib.DEFLATE_ENCODING, MemoryLevel As Integer = zlib.DEFAULT_MEM_LVL) As zlib.ZStream

Parameters

Name Type Comment
InputStream Readable Compressed input will be read from this object
OutputStream Writeable Compressed output will be written to this object
CompressionLevel Integer Optional. The compression level for the stream. Valid levels are 1(fast) to 9(best)
CompressionStrategy Integer Optional. The compression strategy for the stream.
Encoding Integer Optional. The type of compression.
MemoryLevel Integer Optional. The memory level.

Return value

A new instance of ZStream, or Nil on error

Remarks

This method has been deprecated; do not use. Users needing equivalent functionality should create a custom subclass of ZStream and call its protected constructors instead.

Creates a compressed pipe from two endpoints, or a readable and writeable stream if both endpoints represent the same stream.

See also

Entry-level points of interest denoted by "☜"



Clone this wiki locally