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


Xceed.Zip Assembly > Xceed.Zip.ReaderWriter Namespace > ZipReader Class > ReadItemData Method : ReadItemData(Byte[],Int32,Int32) Method
An array of bytes to which data read from the current item will be written.
The zero-based byte offset in buffer at which to begin writing bytes read.
The number of bytes to be copied to buffer in each loop iteration.
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, _
   ByVal offset As Integer, _
   ByVal count As Integer _
) As Integer
'Usage
 
Dim instance As ZipReader
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim value As Integer
 
value = instance.ReadItemData(buffer, offset, count)
public int ReadItemData( 
   byte[] buffer,
   int offset,
   int count
)

Parameters

buffer
An array of bytes to which data read from the current item will be written.
offset
The zero-based byte offset in buffer at which to begin writing bytes read.
count
The number of bytes to be copied to buffer in each loop iteration.

Return Value

Returns the actual number of bytes written to the specified stream, or 0 if the end of the item's data has been reached.
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