uio
– Input/output streams¶
Note
This module is not available on the BOOST Move Hub.
This module contains additional types of stream
(file-like) objects
and helper functions.
- class BytesIO¶
- class BytesIO(initial_bytes: bytes)
- class BytesIO(alloc_size: int)
A binary stream using an in-memory bytes buffer.
- Parameters
initial_bytes – Optional bytes-like object that contains initial data.
alloc_size – Optional number of preallocated bytes.
- class StringIO¶
- class StringIO(initial_value: str)
- class StringIO(alloc_size: int)
A binary stream using an in-memory string buffer.
- Parameters
initial_value – Optional string object that contains initial data.
alloc_size – Optional number of preallocated bytes.
- class FileIO¶
This is type of a file open in binary mode, e.g. using
open(name, 'rb')
. You should not instantiate this class directly.