Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.
...greedy read strategy meaning that it should read as much data as is allowed within the definition of the encoding and the given size, e.g. if optional encoding endings or state markers are available on the stream, these should be read too. """ # Unsliced reading: if size < 0: return self.decode(self.stream.read())[0] # Sliced reading: read = self.stream.read decode = self.decode da...