(code, fp, options)
| 671 | |
| 672 | |
| 673 | def _unpack_binary(code, fp, options): |
| 674 | if code == b'\xc4': |
| 675 | length = struct.unpack("B", _read_except(fp, 1))[0] |
| 676 | elif code == b'\xc5': |
| 677 | length = struct.unpack(">H", _read_except(fp, 2))[0] |
| 678 | elif code == b'\xc6': |
| 679 | length = struct.unpack(">I", _read_except(fp, 4))[0] |
| 680 | else: |
| 681 | raise Exception("logic error, not binary: 0x%02x" % ord(code)) |
| 682 | |
| 683 | return _read_except(fp, length) |
| 684 | |
| 685 | |
| 686 | def _unpack_ext(code, fp, options): |
nothing calls this directly
no test coverage detected