Skip to content

zlib.ZStream.CreatePipe

Andrew Lambert edited this page Mar 2, 2017 · 13 revisions

#zlib.ZStream.CreatePipe

##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.

##Notes 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