Skip to content
Andrew Lambert edited this page Dec 19, 2016 · 16 revisions

#zlib.ZStream.Read

##Method Signature

 Function Read(Count As Integer, encoding As TextEncoding = Nil) As String

##Parameters

Name Type Comment
Count Integer The number of bytes to read
encoding TextEncoding Optional. The encoding of the decompressed data

##Return value The decompressed data.

##Notes This method reads from the compressed stream.

If BufferedReading is True (the default) then this method will read as many compressed bytes as are necessary to produce exactly count decompressed bytes (or until EOF if 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.

##See also

Entry-level points of interest denoted by "☜"



Clone this wiki locally