-
-
Notifications
You must be signed in to change notification settings - Fork 3
zlib.ZStream.Sync
Andrew Lambert edited this page Nov 26, 2022
·
7 revisions
Function Sync(MaxCount As Integer = -1) As Boolean
Name | Type | Comment |
---|---|---|
MaxCount | Integer | Optional. The maximum number of compressed bytes to read. |
Returns True
if a possible flush point was detected.
This method is only available when the input stream is a BinaryStream.
This method reads compressed bytes from the input stream until a possible full flush point is detected. If a flush point was found then the decompressor is reset and switches to RAW_ENCODING
, the Position
property of the BinaryStream is moved to the flush point, and this method returns True
.
If no flush point was found before reaching the MaxCount
or EOF, the Position
property of the BinaryStream is returned to its original value and this method returns False
.
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.