Skip to main content

ChunkIter

An iterable that will yield chunks of data. Given a file-like object as the constructor, yield chunks of read operations from that object.

Attributes

AttributeTypeDescription
flofile-like objectThe file-like object from which data is read during iteration.
chunk_sizeinteger = 65536The number of bytes to read from the file-like object in each iteration step.

Constructor

Signature

def ChunkIter(
flo: file-like object,
chunk_size: int = 65536
) - > null

Parameters

NameTypeDescription
flofile-like objectThe file-like object to read data from.
chunk_sizeint = 65536The size of each data chunk to read in bytes.

Signature

def ChunkIter(
flo: file-like object,
chunk_size: int = 65536
) - > null

Parameters

NameTypeDescription
flofile-like objectThe source file-like object from which data chunks will be read
chunk_sizeint = 65536The number of bytes to read from the file-like object in each iteration