Deployment Tools Foundation
FindArchiveOffset Method (stream)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Compression ► CompressionEngine ► FindArchiveOffset(Stream)
Gets the offset of an archive that is positioned 0 or more bytes
from the start of the Stream.
Declaration Syntax
Parameters
- stream (Stream)
- A stream for reading the archive.
Return Value
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.