DotNetCompression Class Reference for Windows Phone
Read Method (DeflateInputStream)






An array of bytes. When this method returns, the buffer contains the decompressed bytes starting from the byte at offset.
The zero-based byte offset in buffer at which the decompressed bytes will start when this method returns.
The maximum number of bytes to be read from this stream.
Reads decompressed bytes from this stream into the specified byte array.
Syntax
'Declaration
 
Public Overrides Function Read( _
   ByVal buffer() As System.Byte, _
   ByVal offset As System.Integer, _
   ByVal count As System.Integer _
) As System.Integer
'Usage
 
Dim instance As DeflateInputStream
Dim buffer() As System.Byte
Dim offset As System.Integer
Dim count As System.Integer
Dim value As System.Integer
 
value = instance.Read(buffer, offset, count)
public override System.int Read( 
   System.byte[] buffer,
   System.int offset,
   System.int count
)
public function Read( 
    buffer: System.Bytearray of;
    offset: System.Integer;
    count: System.Integer
): System.Integer; override; 
public override function Read( 
   buffer : System.byte[],
   offset : System.int,
   count : System.int
) : System.int;
public: System.int Read( 
   System.byte[]* buffer,
   System.int offset,
   System.int count
) override 
public:
System.int Read( 
   System.array<byte>^ buffer,
   System.int offset,
   System.int count
) override 

Parameters

buffer
An array of bytes. When this method returns, the buffer contains the decompressed bytes starting from the byte at offset.
offset
The zero-based byte offset in buffer at which the decompressed bytes will start when this method returns.
count
The maximum number of bytes to be read from this stream.

Return Value

The number of decompressed bytes in the byte array. If the end of the stream has been reached, 0 is returned.
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 Read

Send Feedback