(cls, fmt, store)
| 284 | |
| 285 | @classmethod |
| 286 | def _read(cls, fmt, store): |
| 287 | size = struct.calcsize(fmt) |
| 288 | data = store.read(size) |
| 289 | if len(data) == 0: |
| 290 | return b'' |
| 291 | |
| 292 | unpacked_data = struct.unpack(fmt, data) |
| 293 | if len(unpacked_data) == 1: |
| 294 | return unpacked_data[0] |
| 295 | else: |
| 296 | return unpacked_data |
| 297 | |
| 298 | @classmethod |
| 299 | def read_null(cls, store, count): |
no test coverage detected