def _unpack_base(self, unpacked): AOSTLicHdrCommon._unpack_data_list(self, unpacked) self._guid = unpacked[2] self._bundle_id = unpacked[3] self._party_id = unpacked[4] self._oem_id = unpacked[5] self._feature_id_size = unpacked[6]
def _unpack_base(self, unpacked): AOSTLicHdrCommon._unpack_data_list(self, unpacked) self._feature_id = unpacked[2] self._oem_id = unpacked[3] self._chip_id = unpacked[4] self._product_id = unpacked[5] self._license_type = unpacked[6] self._evaluation_use_count = unpacked[7] self._metadata_size = unpacked[8]
def validate(self): # Let base do verification AOSTLicHdrCommon.validate(self) # Reset the properties to do validations self.feature_id = self._feature_id self.oem_id = self._oem_id self.chip_id = self._chip_id self.product_id = self._product_id self.license_type = self._license_type self.evaluation_use_count = self._evaluation_use_count self.metadata = self._metadata
def validate(self): # Let base do verification AOSTLicHdrCommon.validate(self) # Reset the properties to do validations self.guid = self._guid self.bundle_id = self._bundle_id self.party_id = self._party_id self.oem_id = self._oem_id self.feature_ids = self._feature_ids self.chip_ids = self._chip_ids self.product_id = self._product_id self.license_type = self._license_type self.evaluation_use_count = self._evaluation_use_count self.reserved_field = self._reserved_field
def _pack_base(self): args_list = (AOSTLicHdrCommon._pack_data_list(self) + [ self.feature_id, self.oem_id, self.chip_id, self.product_id, self.license_type, self.evaluation_use_count, self.metadata_size, ]) return struct.pack(self.get_format(), *args_list)
def _repr_properties(self): properties = [ ('Feature ID', {}, self.feature_id), ('OEM ID', {}, hex(self.oem_id)), ('Chip ID', {}, hex(self.chip_id)), ('Product ID', {}, hex(self.product_id)), (df.AOSTLTYPE_STRING, df.AOSTLTYPE_DESCRIPTION, self.license_type), ('Evaluation Use Count', {}, self.evaluation_use_count), ('Metadata Size', {}, self.metadata_size), ] properties = [(attr, desc.get(val, val)) for attr, desc, val in properties] return AOSTLicHdrCommon._repr_properties(self) + properties
def _repr_properties(self): properties = [ ('Bundle ID', {}, hex(self.bundle_id)), ('GUID', {}, self.guid), ('Party ID', {}, hex(self.party_id)), ('OEM ID', {}, hex(self.oem_id)), ('Feature IDs', {}, str(self.feature_ids)), ('Chip IDs', {}, str(self.chip_ids)), ('Product ID', {}, hex(self.product_id)), (df.AOSTLTYPE_STRING, df.AOSTLTYPE_DESCRIPTION, self.license_type), ('Evaluation Use Count', {}, self.evaluation_use_count), ('Reserved field size', {}, self.reserved_field_size), ] properties = [(attr, desc.get(val, val)) for attr, desc, val in properties] return AOSTLicHdrCommon._repr_properties(self) + properties
def initialize(self, version): AOSTLicHdrCommon.initialize(self, version) self.license_type = df.AOSTLTYPECOMM
def get_format(cls): return AOSTLicHdrCommon.get_format() + str( AOSTL_MAX_GUID_SIZE) + 'sIIHH'
def get_format(cls): return AOSTLicHdrCommon.get_format() + 'IHIHHHH'