return the size of the next object.
(self, tokenL)
| 502 | raise InvalidFileException() |
| 503 | |
| 504 | def _get_size(self, tokenL): |
| 505 | """ return the size of the next object.""" |
| 506 | if tokenL == 0xF: |
| 507 | m = self._fp.read(1)[0] & 0x3 |
| 508 | s = 1 << m |
| 509 | f = '>' + _BINARY_FORMAT[s] |
| 510 | return struct.unpack(f, self._fp.read(s))[0] |
| 511 | |
| 512 | return tokenL |
| 513 | |
| 514 | def _read(self, size): |
| 515 | cursize = min(size, _MIN_READ_BUF_SIZE) |
no test coverage detected