(type)
| 475 | |
| 476 | # ctypes 64 -> 32 methods |
| 477 | def MakePtr32(type): |
| 478 | class PointerToStruct32(Remote_c_void_p32): |
| 479 | _sub_ctypes_ = (type) |
| 480 | |
| 481 | # Not sur about this code.. |
| 482 | # Logic problem: why do I have PointerToStruct32 and RemoteStructurePointer32... ? |
| 483 | @property |
| 484 | def contents(self): |
| 485 | return RemoteStructurePointer32.from_buffer_with_target_and_ptr_type(bytearray(self), target=self.target, ptr_type=self).contents |
| 486 | |
| 487 | def __repr__(self): |
| 488 | return "<RemotePtr32 to struct {0}>".format(type.__name__) |
| 489 | |
| 490 | return PointerToStruct32 |
| 491 | |
| 492 | def transform_structure_to_remote32bits(structcls): |
| 493 | """Create a remote structure for a 32bits target process""" |
no outgoing calls
no test coverage detected