| 1953 | return self._full_size |
| 1954 | |
| 1955 | def __pack__(self): |
| 1956 | data = bytearray(self._full_size) |
| 1957 | data[0 : super(UnwindInfo, self).sizeof()] = super(UnwindInfo, self).__pack__() |
| 1958 | cur_offset = super(UnwindInfo, self).sizeof() |
| 1959 | |
| 1960 | for uc in self.UnwindCodes: |
| 1961 | if cur_offset + uc.struct.sizeof() > self._full_size: |
| 1962 | break |
| 1963 | data[cur_offset : cur_offset + uc.struct.sizeof()] = uc.struct.__pack__() |
| 1964 | cur_offset += uc.struct.sizeof() |
| 1965 | |
| 1966 | if self._opt_field_name != None: |
| 1967 | data[ |
| 1968 | self._full_size - STRUCT_SIZEOF_TYPES["I"] : self._full_size |
| 1969 | ] = struct.pack("<I", getattr(self, self._opt_field_name)) |
| 1970 | |
| 1971 | return data |
| 1972 | |
| 1973 | def get_chained_function_entry(self): |
| 1974 | return self._chained_entry |