(self, format, name=None, file_offset=None)
| 1446 | CF_SUBFLD_IDX = 1 |
| 1447 | |
| 1448 | def __init__(self, format, name=None, file_offset=None): |
| 1449 | ( |
| 1450 | self.__format__, |
| 1451 | self.__format_length__, |
| 1452 | self.__field_offsets__, |
| 1453 | self.__keys__, |
| 1454 | self.__keys_ext__, |
| 1455 | self.__compound_fields__, |
| 1456 | ) = set_bitfields_format(format) |
| 1457 | # create our own unpacked_data_elms to ensure they are not shared among |
| 1458 | # StructureWithBitfields instances with the same format string |
| 1459 | self.__unpacked_data_elms__ = [None for i in range(self.__format_length__)] |
| 1460 | self.__all_zeroes__ = False |
| 1461 | self.__file_offset__ = file_offset |
| 1462 | self.name = name if name != None else format[0] |
| 1463 | |
| 1464 | def __unpack__(self, data): |
| 1465 | # calling the original routine to deal with special cases/spurious data |
nothing calls this directly
no test coverage detected