Return the next byte read from stream. Raise Exception if stream is at end of file.
(self)
| 215 | return offset_of_ff_byte |
| 216 | |
| 217 | def _read_byte(self): |
| 218 | """Return the next byte read from stream. |
| 219 | |
| 220 | Raise Exception if stream is at end of file. |
| 221 | """ |
| 222 | byte_ = self._stream.read(1) |
| 223 | if not byte_: # pragma: no cover |
| 224 | raise Exception("unexpected end of file") |
| 225 | return byte_ |
| 226 | |
| 227 | |
| 228 | def _MarkerFactory(marker_code, stream, offset): |
no test coverage detected