DotNetCompression Class Reference for Windows Phone
BeginRead Method (DeflateInputStream)






An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the decompressed bytes read from the current source.
The zero-based byte offset in buffer at which to begin storing the data read from the current stream.
The maximum number of bytes to be read from the current stream.
An optional asynchronous callback, to be called when the operation is complete.
A user-provided object that distinguishes this particular asynchronous read request from other requests.
Initiates asynchronous read operation which reads and decompresses data from the compressed stream and stores it into the specified buffer.
Syntax
'Declaration
 
Public Overrides Function BeginRead( _
   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 DeflateInputStream
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.BeginRead(buffer, offset, count, callback, state)
public override System.IAsyncResult BeginRead( 
   System.byte[] buffer,
   System.int offset,
   System.int count,
   System.AsyncCallback callback,
   System.object state
)
public function BeginRead( 
    buffer: System.Bytearray of;
    offset: System.Integer;
    count: System.Integer;
    callback: System.AsyncCallback;
    state: System.TObject
): System.IAsyncResult; override; 
public override function BeginRead( 
   buffer : System.byte[],
   offset : System.int,
   count : System.int,
   callback : System.AsyncCallback,
   state : System.Object
) : System.IAsyncResult;
public: System.IAsyncResult* BeginRead( 
   System.byte[]* buffer,
   System.int offset,
   System.int count,
   System.AsyncCallback* callback,
   System.Object* state
) override 
public:
System.IAsyncResult^ BeginRead( 
   System.array<byte>^ buffer,
   System.int offset,
   System.int count,
   System.AsyncCallback^ callback,
   System.Object^ state
) override 

Parameters

buffer
An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the decompressed bytes read from the current source.
offset
The zero-based byte offset in buffer at which to begin storing the data read from the current stream.
count
The maximum number of bytes to be read from the current stream.
callback
An optional asynchronous callback, to be called when the operation is complete.
state
A user-provided object that distinguishes this particular asynchronous read request from other requests.

Return Value

An object that represents the asynchronous read operation, 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

DeflateInputStream Class
DeflateInputStream Members
Base Implementation in BeginRead

Send Feedback