Skip to content

Memory

sdk.memory.Address reads and writes. This page is the bigger tools.

sdk.mem.Search is the Workbench’s value search. It can take a while over all of memory, so run it off the render thread.

var search: sdk.mem.Search = .init(.local);
defer search.deinit();
try search.first(.{ .all = .{ .writable_only = true } }, .four_bytes, "100", .{});
// Take a hit, then
try search.next(.decreased, "");
try search.next(.exact, "90");
if (search.count > 0) std.log.info("health at 0x{x}", .{search.address(0)});

narrow takes your own test instead, for things like unsigned or between.

var it = sdk.regions.iterate(0, std.math.maxInt(usize), .{});
while (it.next()) |r| std.log.info("0x{x} {d} {}", .{ r.start, r.len, r.writable });
const old = try sdk.regions.protect(address, 16, .read_write);

.{ .all = true } lists memory you can’t read too. Wraith puts protection back when the plugin unloads.

See watches.

Made with ♥ by Asgard