Ionic Zip Library v1.9.1.6
Seek Method (offset, origin)
Reference ► Ionic.Zip ► ZipInputStream ► Seek(Int64, SeekOrigin)
This method seeks in the underlying stream.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public override long Seek( long offset, SeekOrigin origin )
Public Overrides Function Seek ( _ offset As Long, _ origin As SeekOrigin _ ) As Long
public: virtual long long Seek( long long offset, SeekOrigin origin ) override
Parameters
- offset (Int64)
- the offset point to seek to
- origin (SeekOrigin)
- the reference point from which to seek
Return Value
The new position
Remarks
Call this method if you want to seek around within the zip file for random access.
Applications can intermix calls to Seek() with calls to GetNextEntry()()()(). After a call to Seek(), GetNextEntry() will get the next ZipEntry that falls after the current position in the input stream. You're on your own for finding out just where to seek in the stream, to get to the various entries.