def test_memory_write():
data = 'A'*0x40
buf = ctypes.c_buffer(data)
ea = ctypes.addressof(buf)
z = provider.memory()
z.seek(ea)
z.store('B'*len(data))
if buf.value == 'B'*len(data):
raise Success
raise Failure
文章目录