PowerTCP Zip Compression for .NET
CompressingStream Constructor




When reading, the data stream to be compressed. When writing, the stream to be filled with compressed data.
CompressionLevel.Low, CompressionLevel.Medium, or CompressionLevel.High
If true, a ZLIB header is generated. If false, no header is created.
Creates a stream that will apply Zip compression to all data written to or read from it.
Syntax
Public Function New( _
   ByVal innerStream As Stream, _
   ByVal level As CompressionLevel, _
   ByVal header As Boolean _
)
Dim innerStream As Stream
Dim level As CompressionLevel
Dim header As Boolean
 
Dim instance As New CompressingStream(innerStream, level, header)
public CompressingStream( 
   Stream innerStream,
   CompressionLevel level,
   bool header
)
public: CompressingStream( 
   Stream* innerStream,
   CompressionLevel level,
   bool header
)
public:
CompressingStream( 
   Stream^ innerStream,
   CompressionLevel level,
   bool header
)

Parameters

innerStream
When reading, the data stream to be compressed. When writing, the stream to be filled with compressed data.
level
CompressionLevel.Low, CompressionLevel.Medium, or CompressionLevel.High
header
If true, a ZLIB header is generated. If false, no header is created.
Remarks

Standard Zip compression will be applied to all bytes passing through this stream.

See Also

Reference

CompressingStream Class
CompressingStream Members


PowerTCP Zip for .NET Documentation Version 2.1.1
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic