def format(self, pos): if self.version == 2083 or self.version == 2084: reader = DataReader(self.data) header = self.read_header(reader) header.format(pos) prop_str_len = header.find_field('PropStrLen').value prop_str = reader.read(prop_str_len) print prop_str else: raise VersionError
def get_props(self): reader = DataReader(self.data) header = self.read_header(reader) prop_str_len = header.find_field('PropStrLen').value prop_str = reader.read(prop_str_len) return prop_str