def init_from_bin(self, bin): bin += b'\0' * 16 self.v0 = struct.unpack('<Q', bin[:8])[0] self.v1 = struct.unpack('<Q', bin[8:16])[0]