Skip to content

BZip2.BZ2Stream.Lookahead

Andrew Lambert edited this page Feb 1, 2023 · 1 revision

BZip2.BZ2Stream.Lookahead

Method Signature

 Function Lookahead(encoding As TextEncoding = Nil) As String

Parameters

Name Type Comment
encoding TextEncoding Optional. The encoding of the decompressed data

Return value

The decompressed data that is still in the read buffer.

Remarks

This method returns the contents of the read buffer if BufferedReading is True (the default). If the read buffer has fewer than two bytes remaining in it then a new chunk of data is read into the buffer.

See also

Clone this wiki locally