Xceed .NET Libraries Documentation
Flush Method (CompressedStream)


Xceed.Compression Assembly > Xceed.Compression Namespace > CompressedStream Class : Flush Method
Causes all pending compressed data to be written to the inner stream, and updates the underlying data source or repository of the inner stream with the current state of the buffer.
Syntax
'Declaration
 
Public Overrides Sub Flush() 
'Usage
 
Dim instance As CompressedStream
 
instance.Flush()
public override void Flush()
Remarks

This may degrade compression for some compression algorithms, so it should be used only when necessary.

Even if all the inner buffers are flushed, the inner stream will not be complete unless the System.IO.Stream.Close is called. This is because when the CompressedStream is closed it writes the final compressed information to the inner stream; Flush does not.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CompressedStream Class
CompressedStream Members
Base Implementation in Flush