class documentation
class ChunkedBytesIO(object):
Turn a list of bytestrings into a file-like object.
This is similar to creating a BytesIO
from a concatenation of the
bytestring list, but saves memory by NOT creating one giant bytestring
first:
BytesIO(b''.join(list_of_bytestrings)) =~= ChunkedBytesIO( list_of_bytestrings)