Xceed Real-Time Zip for .NET Documentation
ReadItemData(Byte[]) Method


Xceed.Zip Assembly > Xceed.Zip.ReaderWriter Namespace > ZipReader Class > ReadItemData Method : ReadItemData(Byte[]) Method
An array of bytes to which data read from the current item will be written.
Reads a sequence of bytes from the current item's data into a specified buffer.
Syntax
'Declaration
 
Public Overloads Function ReadItemData( _
   ByVal buffer() As Byte _
) As Integer
'Usage
 
Dim instance As ZipReader
Dim buffer() As Byte
Dim value As Integer
 
value = instance.ReadItemData(buffer)
public int ReadItemData( 
   byte[] buffer
)

Parameters

buffer
An array of bytes to which data read from the current item will be written.

Return Value

Returns the actual number of bytes written to the specified buffer, or 0 if the end of the item's data has been reached.
Remarks

The method writes data read starting at offset 0 in the specified buffer.

The method attempts to read a size of buffer.Length bytes from the current item's data.

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

ZipReader Class
ZipReader Members
Overload List