ZipInputStream.BodyRead Method

SharpZip Compression Library

SharpZip Compression Library

ZipInputStream.BodyRead Method 

Reads a block of bytes from the current zip entry.

public int BodyRead(
   byte[] b,
   int off,
   int len
);

Return Value

The number of bytes read (this may be less than the length requested, even before the end of stream), or 0 on end of stream.

Exceptions

Exception Type Condition
ZipException The deflated stream is corrupted.
InvalidOperationException The stream is not open.
An i/o error occured.

See Also

ZipInputStream Class | ICSharpCode.SharpZipLib.Zip Namespace