Skip to content

Writing a Byte Array

New Age Soldier edited this page May 27, 2020 · 7 revisions

To write a byte array all at the same time, use writeMemory() with type "bytes".

writeMemory("0x12345678", "bytes", "90 90 90 90 90 90 90 90 90");

If you need to write 1 byte at a time, this is a "for loop" that will write an array of 0x90 17 bytes long.

for (int i = 0; i < 17; i++)
{
    MemLib.writeMove("0x12345678", "byte", "90", i);
}