Beispiel #1
0
 def __init__(self, initial_bytes):
     """Create new ByteStream."""
     BytesIO.__init__(self)
     # use the actual object as a buffer, do not copy
     self._buffer = memoryview(initial_bytes)