DotNetCompression Class Reference for Windows Phone
Flush Method (ICompressionEncoder)






The output buffer into which to write the compressed bytes.
The offset in the output buffer at which to start writing the compressed bytes.
The maximum number of compressed bytes to write into the output buffer.
The flush mode that specifies whether and how to explicitly flush the internal state of the encoder into the output buffer.
Flushes the internal state of the encoder into the specified output buffer.
Syntax
'Declaration
 
Function Flush( _
   ByVal output() As System.Byte, _
   ByVal outputOffset As System.Integer, _
   ByVal maxOutputCount As System.Integer, _
   ByVal flushMode As FlushMode _
) As System.Integer
'Usage
 
Dim instance As ICompressionEncoder
Dim output() As System.Byte
Dim outputOffset As System.Integer
Dim maxOutputCount As System.Integer
Dim flushMode As FlushMode
Dim value As System.Integer
 
value = instance.Flush(output, outputOffset, maxOutputCount, flushMode)
System.int Flush( 
   System.byte[] output,
   System.int outputOffset,
   System.int maxOutputCount,
   FlushMode flushMode
)
function Flush( 
    output: System.Bytearray of;
    outputOffset: System.Integer;
    maxOutputCount: System.Integer;
    flushMode: FlushMode
): System.Integer; 
function Flush( 
   output : System.byte[],
   outputOffset : System.int,
   maxOutputCount : System.int,
   flushMode : FlushMode
) : System.int;
System.int Flush( 
   System.byte[]* output,
   System.int outputOffset,
   System.int maxOutputCount,
   FlushMode flushMode
) 
System.int Flush( 
   System.array<byte>^ output,
   System.int outputOffset,
   System.int maxOutputCount,
   FlushMode flushMode
) 

Parameters

output
The output buffer into which to write the compressed bytes.
outputOffset
The offset in the output buffer at which to start writing the compressed bytes.
maxOutputCount
The maximum number of compressed bytes to write into the output buffer.
flushMode
The flush mode that specifies whether and how to explicitly flush the internal state of the encoder into the output buffer.

Return Value

The number of the compressed bytes written into the output buffer.
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

ICompressionEncoder Interface
ICompressionEncoder Members

Send Feedback