-
-
Notifications
You must be signed in to change notification settings - Fork 3
PKZip.ZipReader.Constructor
Andrew Lambert edited this page Nov 26, 2022
·
4 revisions
Sub Constructor(ZipData As MemoryBlock, Force As Boolean = False)
Sub Constructor(ZipStream As BinaryStream, Force As Boolean = False)
Sub Constructor(ZipStream As FolderItem, Force As Boolean = False)
Name | Type | Comment |
---|---|---|
ZipData | MemoryBlock | The zip archive to read from. |
Force | Boolean | Optional. If True , then the archive is forcibly read. |
Name | Type | Comment |
---|---|---|
ZipStream | BinaryStream | The zip archive to read from. |
Force | Boolean | Optional. If True , then the archive is forcibly read. |
Name | Type | Comment |
---|---|---|
ZipStream | FolderItem | The zip archive to read from. |
Force | Boolean | Optional. If True , then the archive is forcibly read. |
Opens the archive for reading.
If Force=True
then less strict techniques are used:
- The zip data is assumed to start at offset 0
- The central directory is ignored
- Invalid entries are skipped by scanning forward until the next entry is found (slow)
- Checksum mismatches will not cause
MoveNext()
to return False (LastError
is updated correctly, though)
Forcible reading can yield a performance boost on well-formed archives.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.