def test_memory_readwrite():
data = 'A'*0x40
buf = ctypes.c_buffer(data)
ea = ctypes.addressof(buf)
z = provider.memory()
z.seek(ea)
z.store('B'*len(data))
z.seek(ea)
if z.consume(len(data)) == 'B'*len(data):
raise Success
评论列表
文章目录