DotNetCompression Class Reference for Windows Phone
BeginWrite Method (CompressionStream)






The array of bytes to compress.
The offset in the array of bytes to compress.
The number of bytes to compress.
Optional callback to call when asynchronous operation is complete.
A user-provided object that distinguishes this particular asynchronous write request from other requests.
Initiates an asynchronous operation that compresses bytes from the specified buffer and write compressed bytes into the underlying stream.
Syntax
'Declaration
 
Public Overrides Function BeginWrite( _
   ByVal buffer() As System.Byte, _
   ByVal offset As System.Integer, _
   ByVal count As System.Integer, _
   ByVal callback As System.AsyncCallback, _
   ByVal state As System.Object _
) As System.IAsyncResult
'Usage
 
Dim instance As CompressionStream
Dim buffer() As System.Byte
Dim offset As System.Integer
Dim count As System.Integer
Dim callback As System.AsyncCallback
Dim state As System.Object
Dim value As System.IAsyncResult
 
value = instance.BeginWrite(buffer, offset, count, callback, state)
public override System.IAsyncResult BeginWrite( 
   System.byte[] buffer,
   System.int offset,
   System.int count,
   System.AsyncCallback callback,
   System.object state
)
public function BeginWrite( 
    buffer: System.Bytearray of;
    offset: System.Integer;
    count: System.Integer;
    callback: System.AsyncCallback;
    state: System.TObject
): System.IAsyncResult; override; 
public override function BeginWrite( 
   buffer : System.byte[],
   offset : System.int,
   count : System.int,
   callback : System.AsyncCallback,
   state : System.Object
) : System.IAsyncResult;
public: System.IAsyncResult* BeginWrite( 
   System.byte[]* buffer,
   System.int offset,
   System.int count,
   System.AsyncCallback* callback,
   System.Object* state
) override 
public:
System.IAsyncResult^ BeginWrite( 
   System.array<byte>^ buffer,
   System.int offset,
   System.int count,
   System.AsyncCallback^ callback,
   System.Object^ state
) override 

Parameters

buffer
The array of bytes to compress.
offset
The offset in the array of bytes to compress.
count
The number of bytes to compress.
callback
Optional callback to call when asynchronous operation is complete.
state
A user-provided object that distinguishes this particular asynchronous write request from other requests.

Return Value

An System.IAsyncResult that represents the asynchronous read, which could still be pending.
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

CompressionStream Class
CompressionStream Members
Base Implementation in BeginWrite

Send Feedback