Declaration

Instance Methods

In order to decode a code unit sequence completely, this function should
be called repeatedly until it returns UnicodeDecodingResult.EmptyInput.
Checking that the generator was exhausted is not sufficient. The decoder
can have an internal buffer that is pre-filled with data from the input
generator.

Because of buffering, it is impossible to find the corresponding position
in the generator for a given returned UnicodeScalar or an error.