PowerTCP Zip Compression for .NET
Flush Method (BaseStream)




Updates the underlying repository with the current state of the buffer and then clears the buffer.
Syntax
Public Overrides Sub Flush() 
Dim instance As BaseStream
 
instance.Flush()
public override void Flush()
public: void Flush(); override 
public:
void Flush(); override 
Exceptions
ExceptionDescription
System.IO.IOExceptionAn I/O error occurs.
System.ObjectDisposedExceptionThe Stream is closed.
Remarks

If the Stream contains any internal Streams as members, this method will also cause the Flush method of all internal Streams.

This method MUST be called when writing is complete for operations to operate properly. One example is when creating a message comprised of only headers. If Flush is not called, the headers will be lost.

See Also

Reference

BaseStream Class
BaseStream Members


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