Deployment Tools Foundation
FindArchiveOffset Method (stream)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Compression.Zip ► ZipEngine ► FindArchiveOffset(Stream)
Gets the offset of an archive that is positioned 0 or more bytes
from the start of the Stream.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public override long FindArchiveOffset( Stream stream )
Public Overrides Function FindArchiveOffset ( stream As Stream ) As Long
public: virtual long long FindArchiveOffset( Stream^ stream ) override
abstract FindArchiveOffset : stream : Stream -> int64 override FindArchiveOffset : stream : Stream -> int64
Parameters
- stream (Stream)
- A stream for reading the archive.
Return Value
Int64
The offset in bytes of the archive, or -1 if no archive is found in the Stream.
The offset in bytes of the archive, or -1 if no archive is found in the Stream.
Remarks
The archive must begin on a 4-byte boundary.
Assembly: Microsoft.Deployment.Compression.Zip (Module: Microsoft.Deployment.Compression.Zip.dll) Version: 3.0.0.0 (3.11.1.2318)