def packed(self) -> bytes:
     return b"".join((
         self._struct.pack(pack_ascii(self.magic), self.unknown_1,
                           self.unknown_2, self.object_count),
         self.scannable_object_info.packed(),
         self.dependencies.packed(),
     ))
Пример #2
0
 def packed(self) -> bytes:
     return b"".join((
         self._struct.pack(pack_ascii(self.instance_type),
                           self.instance_size, self.instance_ID,
                           self.connection_count),
         *(connection.packed() for connection in self.connections),
         self.base_property_struct.packed(),
     ))
Пример #3
0
 def packed(self) -> bytes:
     return self._struct.pack(
         int(self.compressed),
         pack_ascii(self.asset_type),
         self.asset_ID,
         self.size,
         self.offset,
     )
 def packed(self) -> bytes:
     return self._struct.pack(pack_ascii(self.asset_type), self.asset_ID)
Пример #5
0
 def packed(self) -> bytes:
     return self._struct.pack(
         pack_ascii(self.state),
         pack_ascii(self.message),
         self.target_instance_ID,
     )
Пример #6
0
 def packed(self) -> bytes:
     return self._struct.pack(
         pack_ascii(self.language_ID),
         self.strings_offset,
         self.strings_size,
     )
Пример #7
0
 def packed(self) -> bytes:
     return b"".join((
         self._struct.pack(pack_ascii(self.asset_type), self.asset_ID,
                           self.name_length),
         pack_ascii(self.name),
     ))
Пример #8
0
 def packed(self) -> bytes:
     return b"".join((
         self._struct.pack(pack_ascii(self.magic), self.root_node_instance_ID, self.unknown, self.object_count),
         *(object_.packed() for object_ in self.objects),
     ))