class _IteratorBuffer: (source)
Method | __init__ |
|
Method | __iter__ |
Return an iterator. |
Method | __next__ |
Get the next string from the container, buffer it, and possibly send the buffer to the writer. |
Instance Variable | bufSize |
The number of bytes currently in the buffer. |
Instance Variable | iterator |
An iterator over a container of strings. |
Instance Variable | lines |
The buffer, which is a list of strings. |
Instance Variable | memoryBufferSize |
See __init__ . |
Instance Variable | write |
See __init__ . |
Parameters | |
write:callable that takes list of bytes | A writer which is a callable that takes a list of strings. |
iterable:iterable which yields bytes | An iterable container of strings. |
memoryBufferSize:int or None | The number of bytes to buffer before flushing the buffer to the writer. |