return the size of the next object.
(self, tokenL)
| 495 | raise InvalidFileException() |
| 496 | |
| 497 | def _get_size(self, tokenL): |
| 498 | """ return the size of the next object.""" |
| 499 | if tokenL == 0xF: |
| 500 | m = self._fp.read(1)[0] & 0x3 |
| 501 | s = 1 << m |
| 502 | f = '>' + _BINARY_FORMAT[s] |
| 503 | return struct.unpack(f, self._fp.read(s))[0] |
| 504 | |
| 505 | return tokenL |
| 506 | |
| 507 | def _read(self, size): |
| 508 | cursize = min(size, _MIN_READ_BUF_SIZE) |
no test coverage detected