ComponentOne Zip for UWP
C1.UWP.Zip Assembly / C1.C1Zip Namespace / C1ZStreamReader Class / Read Method
An array of bytes. When this method returns, buf contains the specified byte array with the values between offsetand (offset + count) replaced by the uncompressed data read from the stream.
The zero-based byte offset in buf at which to begin storing the data read from the current stream.
The maximum number of (decompressed) bytes to be read from the current stream.

In This Topic
    Read Method (C1ZStreamReader)
    In This Topic
    Reads a sequence of bytes from the underlying compressed stream, decompressing them into a buffer, then advances the position within the stream by the number of bytes read.
    Syntax
    'Declaration
     
    Public Overrides Function Read( _
       ByVal buf() As System.Byte, _
       ByVal offset As System.Integer, _
       ByVal count As System.Integer _
    ) As System.Integer
    public override System.int Read( 
       System.byte[] buf,
       System.int offset,
       System.int count
    )

    Parameters

    buf
    An array of bytes. When this method returns, buf contains the specified byte array with the values between offsetand (offset + count) replaced by the uncompressed data read from the stream.
    offset
    The zero-based byte offset in buf at which to begin storing the data read from the current stream.
    count
    The maximum number of (decompressed) bytes to be read from the current stream.

    Return Value

    The total number of bytes read into the buffer. This may be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
    See Also