Bases: object
Abstract Methods
| read(n_bytes) | Read a number of bytes from the underlying stream |
| readall() | Read the rest of the bytes from the underlying stream |
| readinto(array) | Read a number of bytes into an array from the underlying stream |
Detailed Methods
Read a number of bytes from the underlying stream
| Parameters: | n_bytes (int) – The number of bytes to read. |
|---|---|
| Returns: | The bytes read from the underlying stream. May be less than requested. |
| Return type: | bytearray |
| Raises IOError: | If there is an error obtaining the bytes |