Store structure contents to a specified memory address. Args: mem: memory manager instance address: destination address
(self, mem: QlMemoryManager, address: int)
| 29 | """ |
| 30 | |
| 31 | def save_to(self, mem: QlMemoryManager, address: int) -> None: |
| 32 | """Store structure contents to a specified memory address. |
| 33 | |
| 34 | Args: |
| 35 | mem: memory manager instance |
| 36 | address: destination address |
| 37 | """ |
| 38 | |
| 39 | data = bytes(self) |
| 40 | |
| 41 | mem.write(address, data) |
| 42 | |
| 43 | @classmethod |
| 44 | def load_from(cls, mem: QlMemoryManager, address: int): |