-
-
Notifications
You must be signed in to change notification settings - Fork 4
zlib.ZStream.Read
Function Read(Count As Integer, encoding As TextEncoding = Nil) As String Implements Readable.Read| Name | Type | Comment |
|---|---|---|
| Count | Integer | The number of bytes to read (see remarks) |
| encoding | TextEncoding | Optional. The encoding of the decompressed data |
The decompressed data.
This method reads from the compressed stream.
If BufferedReading is True (the default) then this method will return exactly Count decompressed bytes (unless there are fewer than Count decompressed bytes remaining in the stream).
If BufferedReading is False then exactly Count compressed bytes are read and fed into the decompressor. Any decompressed output is returned: depending on the size of the read request and the state of the decompressor this method might return zero bytes. A zero-length return value does not indicate an error or the end of the stream; continue to Read from the stream until EOF=True.
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.