Memory
The game’s memory. Pages are checked first, so bad addresses error instead of crashing. Returned text and slices are good till the thread’s next call into Wraith. Any thread.
Memory.Scan
Section titled “Memory.Scan”Results to narrow down, like Cheat Engine’s. Freed with the plugin, or destroy. A stopped search gives Cancelled.
count(): bigintnext(compare: Wraith.Memory.Scan.Compare | Wraith.Memory.Scan.CompareName, value: string, high: string): Promise<void>results(offset: number | bigint, limit: number): Array<number>destroy(): voidcount(): integernext(compare: Wraith.Memory.Scan.Compare|Wraith.Memory.Scan.CompareName, value: string, high: string): salamander.Promiseresults(offset: integer, limit: integer): (integer)[]destroy()ulong Count()System.Threading.Tasks.Task NextAsync(Wraith.Memory.Scan.Compare compare, string value, string high, System.Threading.CancellationToken cancel = default)nuint[] Results(ulong offset, uint limit)void Destroy()uint64_t count() constsal::Future<void, Wraith::ScanError> next(Wraith::Memory_Scan_Compare compare, std::string_view value, std::string_view high) conststd::span<const uintptr_t> results(uint64_t offset, uint32_t limit) constvoid destroy() constpub fn count(&self) -> u64pub fn next(&self, compare: wraith::MemoryScanCompare, value: &str, high: &str) -> salamander::Future<(), wraith::ScanError>pub fn results(&self, offset: u64, limit: u32) -> &[usize]pub fn destroy(&self)fn count(self: Wraith.Memory.Scan) u64fn next(self: Wraith.Memory.Scan, compare: Wraith.Memory.Scan.Compare, value: []const u8, high: []const u8) rt.Promise((Wraith.ScanError || rt.Failure)!void, Wraith.ScanErrorCode)fn results(self: Wraith.Memory.Scan, offset: u64, limit: u32) []const usizefn destroy(self: Wraith.Memory.Scan) voiduint64_t Wraith_Memory_Scan_count(Wraith_Memory_Scan self)sal_Promise Wraith_Memory_Scan_next(Wraith_Memory_Scan self, Wraith_Memory_Scan_Compare compare, sal_string value, sal_string high)Slice_usize Wraith_Memory_Scan_results(Wraith_Memory_Scan self, uint64_t offset, uint32_t limit)void Wraith_Memory_Scan_destroy(Wraith_Memory_Scan self)Keeps results where compare holds, on a worker. Their values become the next baseline.
Async. Fails with ScanError. Uses Memory.Scan.Compare.
results
Section titled “results”At most limit addresses from offset. 0 is a thousand.
destroy
Section titled “destroy”Frees its results now, stopping a running search.
Memory
Section titled “Memory”Get it with Api.memory().
readU8(address: number | bigint): numberreadU16(address: number | bigint): numberreadU32(address: number | bigint): numberreadU64(address: number | bigint): bigintreadI8(address: number | bigint): numberreadI16(address: number | bigint): numberreadI32(address: number | bigint): numberreadI64(address: number | bigint): bigintreadF32(address: number | bigint): numberreadF64(address: number | bigint): numberreadPointer(address: number | bigint): numberwriteU8(address: number | bigint, value: number): voidwriteU16(address: number | bigint, value: number): voidwriteU32(address: number | bigint, value: number): voidwriteU64(address: number | bigint, value: number | bigint): voidwriteI8(address: number | bigint, value: number): voidwriteI16(address: number | bigint, value: number): voidwriteI32(address: number | bigint, value: number): voidwriteI64(address: number | bigint, value: number | bigint): voidwriteF32(address: number | bigint, value: number): voidwriteF64(address: number | bigint, value: number): voidwritePointer(address: number | bigint, value: number | bigint): voidreadString(address: number | bigint, max: number): stringreadUtf16(address: number | bigint, max: number): stringwriteString(address: number | bigint, value: string): voidwriteUtf16(address: number | bigint, value: string): voidreadBytes(address: number | bigint, length: number): Uint8Array | nullwriteBytes(address: number | bigint, bytes: Array<number>): voidisReadable(address: number | bigint, length: number | bigint): booleanmain(): Wraith.Memory.ModulefindModule(name: string): Wraith.Memory.Modulecontaining(address: number | bigint): Wraith.Memory.Modulefind(module: string, name: string, pattern: string): numberfindAll(module: string, pattern: string, max: number): Array<number>regions(module: string, all: boolean): Array<Wraith.Memory.Region>protect(address: number | bigint, length: number | bigint, protection: Wraith.Memory.Protection | Wraith.Memory.ProtectionName): Wraith.Memory.Protectionscan(options: import("salamander").Given<Wraith.Memory.Scan.Options>): Promise<Wraith.Memory.Scan>readU8(address: integer): integerreadU16(address: integer): integerreadU32(address: integer): integerreadU64(address: integer): integerreadI8(address: integer): integerreadI16(address: integer): integerreadI32(address: integer): integerreadI64(address: integer): integerreadF32(address: integer): numberreadF64(address: integer): numberreadPointer(address: integer): integerwriteU8(address: integer, value: integer)writeU16(address: integer, value: integer)writeU32(address: integer, value: integer)writeU64(address: integer, value: integer)writeI8(address: integer, value: integer)writeI16(address: integer, value: integer)writeI32(address: integer, value: integer)writeI64(address: integer, value: integer)writeF32(address: integer, value: number)writeF64(address: integer, value: number)writePointer(address: integer, value: integer)readString(address: integer, max: integer): stringreadUtf16(address: integer, max: integer): stringwriteString(address: integer, value: string)writeUtf16(address: integer, value: string)readBytes(address: integer, length: integer): stringwriteBytes(address: integer, bytes: (integer)[])isReadable(address: integer, length: integer): booleanmain(): Wraith.Memory.ModulefindModule(name: string): Wraith.Memory.Modulecontaining(address: integer): Wraith.Memory.Modulefind(module: string, name: string, pattern: string): integerfindAll(module: string, pattern: string, max: integer): (integer)[]regions(module: string, all: boolean): (Wraith.Memory.Region)[]protect(address: integer, length: integer, protection: Wraith.Memory.Protection|Wraith.Memory.ProtectionName): Wraith.Memory.Protectionscan(options: Wraith.Memory.Scan.Options): salamander.Promisebyte ReadU8(nuint address)ushort ReadU16(nuint address)uint ReadU32(nuint address)ulong ReadU64(nuint address)sbyte ReadI8(nuint address)short ReadI16(nuint address)int ReadI32(nuint address)long ReadI64(nuint address)float ReadF32(nuint address)double ReadF64(nuint address)nuint ReadPointer(nuint address)void WriteU8(nuint address, byte value)void WriteU16(nuint address, ushort value)void WriteU32(nuint address, uint value)void WriteU64(nuint address, ulong value)void WriteI8(nuint address, sbyte value)void WriteI16(nuint address, short value)void WriteI32(nuint address, int value)void WriteI64(nuint address, long value)void WriteF32(nuint address, float value)void WriteF64(nuint address, double value)void WritePointer(nuint address, nuint value)string ReadString(nuint address, uint max)string ReadUtf16(nuint address, uint max)void WriteString(nuint address, string value)void WriteUtf16(nuint address, string value)Salamander.Blob? ReadBytes(nuint address, uint length)void WriteBytes(nuint address, System.ReadOnlySpan<byte> bytes)bool IsReadable(nuint address, nuint length)Wraith.Memory.Module Main()Wraith.Memory.Module FindModule(string name)Wraith.Memory.Module Containing(nuint address)nuint Find(string module, string name, string pattern)nuint[] FindAll(string module, string pattern, uint max)Wraith.Memory.Region[] Regions(string module, bool all)Wraith.Memory.Protection Protect(nuint address, nuint length, Wraith.Memory.Protection protection)System.Threading.Tasks.Task<Wraith.Memory.Scan?> ScanAsync(Wraith.Memory.Scan.Options options, System.Threading.CancellationToken cancel = default)sal::Result<uint8_t, Wraith::MemoryError> readU8(uintptr_t address) constsal::Result<uint16_t, Wraith::MemoryError> readU16(uintptr_t address) constsal::Result<uint32_t, Wraith::MemoryError> readU32(uintptr_t address) constsal::Result<uint64_t, Wraith::MemoryError> readU64(uintptr_t address) constsal::Result<int8_t, Wraith::MemoryError> readI8(uintptr_t address) constsal::Result<int16_t, Wraith::MemoryError> readI16(uintptr_t address) constsal::Result<int32_t, Wraith::MemoryError> readI32(uintptr_t address) constsal::Result<int64_t, Wraith::MemoryError> readI64(uintptr_t address) constsal::Result<float, Wraith::MemoryError> readF32(uintptr_t address) constsal::Result<double, Wraith::MemoryError> readF64(uintptr_t address) constsal::Result<uintptr_t, Wraith::MemoryError> readPointer(uintptr_t address) constsal::Result<void, Wraith::MemoryError> writeU8(uintptr_t address, uint8_t value) constsal::Result<void, Wraith::MemoryError> writeU16(uintptr_t address, uint16_t value) constsal::Result<void, Wraith::MemoryError> writeU32(uintptr_t address, uint32_t value) constsal::Result<void, Wraith::MemoryError> writeU64(uintptr_t address, uint64_t value) constsal::Result<void, Wraith::MemoryError> writeI8(uintptr_t address, int8_t value) constsal::Result<void, Wraith::MemoryError> writeI16(uintptr_t address, int16_t value) constsal::Result<void, Wraith::MemoryError> writeI32(uintptr_t address, int32_t value) constsal::Result<void, Wraith::MemoryError> writeI64(uintptr_t address, int64_t value) constsal::Result<void, Wraith::MemoryError> writeF32(uintptr_t address, float value) constsal::Result<void, Wraith::MemoryError> writeF64(uintptr_t address, double value) constsal::Result<void, Wraith::MemoryError> writePointer(uintptr_t address, uintptr_t value) constsal::Result<std::string_view, Wraith::MemoryError> readString(uintptr_t address, uint32_t max) constsal::Result<std::string_view, Wraith::MemoryError> readUtf16(uintptr_t address, uint32_t max) constsal::Result<void, Wraith::MemoryError> writeString(uintptr_t address, std::string_view value) constsal::Result<void, Wraith::MemoryError> writeUtf16(uintptr_t address, std::string_view value) constsal::Result<sal::Blob, Wraith::MemoryError> readBytes(uintptr_t address, uint32_t length) constsal::Result<void, Wraith::MemoryError> writeBytes(uintptr_t address, std::span<const uint8_t> bytes) constbool isReadable(uintptr_t address, uintptr_t length) constWraith::Memory_Module main() constsal::Result<Wraith::Memory_Module, Wraith::MemoryError> findModule(std::string_view name) constsal::Result<Wraith::Memory_Module, Wraith::MemoryError> containing(uintptr_t address) constsal::Result<uintptr_t, Wraith::MemoryError> find(std::string_view module, std::string_view name, std::string_view pattern) constsal::Result<std::span<const uintptr_t>, Wraith::MemoryError> findAll(std::string_view module, std::string_view pattern, uint32_t max) constsal::Result<std::span<const Wraith::Memory_Region>, Wraith::MemoryError> regions(std::string_view module, bool all) constsal::Result<Wraith::Memory_Protection, Wraith::MemoryError> protect(uintptr_t address, uintptr_t length, Wraith::Memory_Protection protection) constsal::Future<Wraith::Memory_Scan, Wraith::ScanError> scan(Wraith::Memory_Scan_Options options) constpub fn read_u8(&self, address: usize) -> Result<u8, wraith::MemoryError>pub fn read_u16(&self, address: usize) -> Result<u16, wraith::MemoryError>pub fn read_u32(&self, address: usize) -> Result<u32, wraith::MemoryError>pub fn read_u64(&self, address: usize) -> Result<u64, wraith::MemoryError>pub fn read_i8(&self, address: usize) -> Result<i8, wraith::MemoryError>pub fn read_i16(&self, address: usize) -> Result<i16, wraith::MemoryError>pub fn read_i32(&self, address: usize) -> Result<i32, wraith::MemoryError>pub fn read_i64(&self, address: usize) -> Result<i64, wraith::MemoryError>pub fn read_f32(&self, address: usize) -> Result<f32, wraith::MemoryError>pub fn read_f64(&self, address: usize) -> Result<f64, wraith::MemoryError>pub fn read_pointer(&self, address: usize) -> Result<usize, wraith::MemoryError>pub fn write_u8(&self, address: usize, value: u8) -> Result<(), wraith::MemoryError>pub fn write_u16(&self, address: usize, value: u16) -> Result<(), wraith::MemoryError>pub fn write_u32(&self, address: usize, value: u32) -> Result<(), wraith::MemoryError>pub fn write_u64(&self, address: usize, value: u64) -> Result<(), wraith::MemoryError>pub fn write_i8(&self, address: usize, value: i8) -> Result<(), wraith::MemoryError>pub fn write_i16(&self, address: usize, value: i16) -> Result<(), wraith::MemoryError>pub fn write_i32(&self, address: usize, value: i32) -> Result<(), wraith::MemoryError>pub fn write_i64(&self, address: usize, value: i64) -> Result<(), wraith::MemoryError>pub fn write_f32(&self, address: usize, value: f32) -> Result<(), wraith::MemoryError>pub fn write_f64(&self, address: usize, value: f64) -> Result<(), wraith::MemoryError>pub fn write_pointer(&self, address: usize, value: usize) -> Result<(), wraith::MemoryError>pub fn read_string(&self, address: usize, max: u32) -> Result<&str, wraith::MemoryError>pub fn read_utf16(&self, address: usize, max: u32) -> Result<&str, wraith::MemoryError>pub fn write_string(&self, address: usize, value: &str) -> Result<(), wraith::MemoryError>pub fn write_utf16(&self, address: usize, value: &str) -> Result<(), wraith::MemoryError>pub fn read_bytes(&self, address: usize, length: u32) -> Result<salamander::Blob, wraith::MemoryError>pub fn write_bytes(&self, address: usize, bytes: &[u8]) -> Result<(), wraith::MemoryError>pub fn is_readable(&self, address: usize, length: usize) -> boolpub fn main(&self) -> wraith::MemoryModulepub fn find_module(&self, name: &str) -> Result<wraith::MemoryModule, wraith::MemoryError>pub fn containing(&self, address: usize) -> Result<wraith::MemoryModule, wraith::MemoryError>pub fn find(&self, module: &str, name: &str, pattern: &str) -> Result<usize, wraith::MemoryError>pub fn find_all(&self, module: &str, pattern: &str, max: u32) -> Result<&[usize], wraith::MemoryError>pub fn regions(&self, module: &str, all: bool) -> Result<&[wraith::MemoryRegion], wraith::MemoryError>pub fn protect(&self, address: usize, length: usize, protection: wraith::MemoryProtection) -> Result<wraith::MemoryProtection, wraith::MemoryError>pub fn scan(&self, options: wraith::MemoryScanOptions) -> salamander::Future<wraith::MemoryScan, wraith::ScanError>fn readU8(self: Wraith.Memory, address: usize) (Wraith.MemoryError || rt.Failure)!u8fn readU16(self: Wraith.Memory, address: usize) (Wraith.MemoryError || rt.Failure)!u16fn readU32(self: Wraith.Memory, address: usize) (Wraith.MemoryError || rt.Failure)!u32fn readU64(self: Wraith.Memory, address: usize) (Wraith.MemoryError || rt.Failure)!u64fn readI8(self: Wraith.Memory, address: usize) (Wraith.MemoryError || rt.Failure)!i8fn readI16(self: Wraith.Memory, address: usize) (Wraith.MemoryError || rt.Failure)!i16fn readI32(self: Wraith.Memory, address: usize) (Wraith.MemoryError || rt.Failure)!i32fn readI64(self: Wraith.Memory, address: usize) (Wraith.MemoryError || rt.Failure)!i64fn readF32(self: Wraith.Memory, address: usize) (Wraith.MemoryError || rt.Failure)!f32fn readF64(self: Wraith.Memory, address: usize) (Wraith.MemoryError || rt.Failure)!f64fn readPointer(self: Wraith.Memory, address: usize) (Wraith.MemoryError || rt.Failure)!usizefn writeU8(self: Wraith.Memory, address: usize, value: u8) (Wraith.MemoryError || rt.Failure)!voidfn writeU16(self: Wraith.Memory, address: usize, value: u16) (Wraith.MemoryError || rt.Failure)!voidfn writeU32(self: Wraith.Memory, address: usize, value: u32) (Wraith.MemoryError || rt.Failure)!voidfn writeU64(self: Wraith.Memory, address: usize, value: u64) (Wraith.MemoryError || rt.Failure)!voidfn writeI8(self: Wraith.Memory, address: usize, value: i8) (Wraith.MemoryError || rt.Failure)!voidfn writeI16(self: Wraith.Memory, address: usize, value: i16) (Wraith.MemoryError || rt.Failure)!voidfn writeI32(self: Wraith.Memory, address: usize, value: i32) (Wraith.MemoryError || rt.Failure)!voidfn writeI64(self: Wraith.Memory, address: usize, value: i64) (Wraith.MemoryError || rt.Failure)!voidfn writeF32(self: Wraith.Memory, address: usize, value: f32) (Wraith.MemoryError || rt.Failure)!voidfn writeF64(self: Wraith.Memory, address: usize, value: f64) (Wraith.MemoryError || rt.Failure)!voidfn writePointer(self: Wraith.Memory, address: usize, value: usize) (Wraith.MemoryError || rt.Failure)!voidfn readString(self: Wraith.Memory, address: usize, max: u32) (Wraith.MemoryError || rt.Failure)![]const u8fn readUtf16(self: Wraith.Memory, address: usize, max: u32) (Wraith.MemoryError || rt.Failure)![]const u8fn writeString(self: Wraith.Memory, address: usize, value: []const u8) (Wraith.MemoryError || rt.Failure)!voidfn writeUtf16(self: Wraith.Memory, address: usize, value: []const u8) (Wraith.MemoryError || rt.Failure)!voidfn readBytes(self: Wraith.Memory, address: usize, length: u32) (Wraith.MemoryError || rt.Failure)!rt.Blobfn writeBytes(self: Wraith.Memory, address: usize, bytes: []const u8) (Wraith.MemoryError || rt.Failure)!voidfn isReadable(self: Wraith.Memory, address: usize, length: usize) boolfn main(self: Wraith.Memory) Wraith.Memory.Modulefn findModule(self: Wraith.Memory, name: []const u8) (Wraith.MemoryError || rt.Failure)!Wraith.Memory.Modulefn containing(self: Wraith.Memory, address: usize) (Wraith.MemoryError || rt.Failure)!Wraith.Memory.Modulefn find(self: Wraith.Memory, module: []const u8, name: []const u8, pattern: []const u8) (Wraith.MemoryError || rt.Failure)!usizefn findAll(self: Wraith.Memory, module: []const u8, pattern: []const u8, max: u32) (Wraith.MemoryError || rt.Failure)![]const usizefn regions(self: Wraith.Memory, module: []const u8, all: bool) (Wraith.MemoryError || rt.Failure)![]const Wraith.Memory.Regionfn protect(self: Wraith.Memory, address: usize, length: usize, protection: Wraith.Memory.Protection) (Wraith.MemoryError || rt.Failure)!Wraith.Memory.Protectionfn scan(self: Wraith.Memory, options: raw.Wraith_Memory_Scan_Options) rt.Promise((Wraith.ScanError || rt.Failure)!Wraith.Memory.Scan, Wraith.ScanErrorCode)uint32_t Wraith_Memory_readU8(Wraith_Memory self, uintptr_t address, uint8_t *out)uint32_t Wraith_Memory_readU16(Wraith_Memory self, uintptr_t address, uint16_t *out)uint32_t Wraith_Memory_readU32(Wraith_Memory self, uintptr_t address, uint32_t *out)uint32_t Wraith_Memory_readU64(Wraith_Memory self, uintptr_t address, uint64_t *out)uint32_t Wraith_Memory_readI8(Wraith_Memory self, uintptr_t address, int8_t *out)uint32_t Wraith_Memory_readI16(Wraith_Memory self, uintptr_t address, int16_t *out)uint32_t Wraith_Memory_readI32(Wraith_Memory self, uintptr_t address, int32_t *out)uint32_t Wraith_Memory_readI64(Wraith_Memory self, uintptr_t address, int64_t *out)uint32_t Wraith_Memory_readF32(Wraith_Memory self, uintptr_t address, float *out)uint32_t Wraith_Memory_readF64(Wraith_Memory self, uintptr_t address, double *out)uint32_t Wraith_Memory_readPointer(Wraith_Memory self, uintptr_t address, uintptr_t *out)uint32_t Wraith_Memory_writeU8(Wraith_Memory self, uintptr_t address, uint8_t value)uint32_t Wraith_Memory_writeU16(Wraith_Memory self, uintptr_t address, uint16_t value)uint32_t Wraith_Memory_writeU32(Wraith_Memory self, uintptr_t address, uint32_t value)uint32_t Wraith_Memory_writeU64(Wraith_Memory self, uintptr_t address, uint64_t value)uint32_t Wraith_Memory_writeI8(Wraith_Memory self, uintptr_t address, int8_t value)uint32_t Wraith_Memory_writeI16(Wraith_Memory self, uintptr_t address, int16_t value)uint32_t Wraith_Memory_writeI32(Wraith_Memory self, uintptr_t address, int32_t value)uint32_t Wraith_Memory_writeI64(Wraith_Memory self, uintptr_t address, int64_t value)uint32_t Wraith_Memory_writeF32(Wraith_Memory self, uintptr_t address, float value)uint32_t Wraith_Memory_writeF64(Wraith_Memory self, uintptr_t address, double value)uint32_t Wraith_Memory_writePointer(Wraith_Memory self, uintptr_t address, uintptr_t value)uint32_t Wraith_Memory_readString(Wraith_Memory self, uintptr_t address, uint32_t max, sal_string *out)uint32_t Wraith_Memory_readUtf16(Wraith_Memory self, uintptr_t address, uint32_t max, sal_string *out)uint32_t Wraith_Memory_writeString(Wraith_Memory self, uintptr_t address, sal_string value)uint32_t Wraith_Memory_writeUtf16(Wraith_Memory self, uintptr_t address, sal_string value)uint32_t Wraith_Memory_readBytes(Wraith_Memory self, uintptr_t address, uint32_t length, sal_object *out)uint32_t Wraith_Memory_writeBytes(Wraith_Memory self, uintptr_t address, Slice_u8 bytes)bool Wraith_Memory_isReadable(Wraith_Memory self, uintptr_t address, uintptr_t length)Wraith_Memory_Module Wraith_Memory_main(Wraith_Memory self)uint32_t Wraith_Memory_findModule(Wraith_Memory self, sal_string name, Wraith_Memory_Module *out)uint32_t Wraith_Memory_containing(Wraith_Memory self, uintptr_t address, Wraith_Memory_Module *out)uint32_t Wraith_Memory_find(Wraith_Memory self, sal_string module, sal_string name, sal_string pattern, uintptr_t *out)uint32_t Wraith_Memory_findAll(Wraith_Memory self, sal_string module, sal_string pattern, uint32_t max, Slice_usize *out)uint32_t Wraith_Memory_regions(Wraith_Memory self, sal_string module, bool all, Slice_Wraith_Memory_Region *out)uint32_t Wraith_Memory_protect(Wraith_Memory self, uintptr_t address, uintptr_t length, Wraith_Memory_Protection protection, Wraith_Memory_Protection *out)sal_Promise Wraith_Memory_scan(Wraith_Memory self, Wraith_Memory_Scan_Options options)readU8
Section titled “readU8”Fails with MemoryError.
readU16
Section titled “readU16”Fails with MemoryError.
readU32
Section titled “readU32”Fails with MemoryError.
readU64
Section titled “readU64”Fails with MemoryError.
readI8
Section titled “readI8”Fails with MemoryError.
readI16
Section titled “readI16”Fails with MemoryError.
readI32
Section titled “readI32”Fails with MemoryError.
readI64
Section titled “readI64”Fails with MemoryError.
readF32
Section titled “readF32”Fails with MemoryError.
readF64
Section titled “readF64”Fails with MemoryError.
readPointer
Section titled “readPointer”Fails with MemoryError.
writeU8
Section titled “writeU8”Fails with MemoryError.
writeU16
Section titled “writeU16”Fails with MemoryError.
writeU32
Section titled “writeU32”Fails with MemoryError.
writeU64
Section titled “writeU64”Fails with MemoryError.
writeI8
Section titled “writeI8”Fails with MemoryError.
writeI16
Section titled “writeI16”Fails with MemoryError.
writeI32
Section titled “writeI32”Fails with MemoryError.
writeI64
Section titled “writeI64”Fails with MemoryError.
writeF32
Section titled “writeF32”Fails with MemoryError.
writeF64
Section titled “writeF64”Fails with MemoryError.
writePointer
Section titled “writePointer”Fails with MemoryError.
readString
Section titled “readString”Up to a 0 or max bytes. 0 is 4096.
Fails with MemoryError.
readUtf16
Section titled “readUtf16”UTF-16 up to a 0 or max chars, as UTF-8. 0 is 4096.
Fails with MemoryError.
writeString
Section titled “writeString”With a 0 after.
Fails with MemoryError.
writeUtf16
Section titled “writeUtf16”Fails with MemoryError.
readBytes
Section titled “readBytes”A copy, which the caller owns.
Fails with MemoryError.
writeBytes
Section titled “writeBytes”Fails with MemoryError.
isReadable
Section titled “isReadable”The game’s exe.
Uses Memory.Module.
findModule
Section titled “findModule”Fails with MemoryError. Uses Memory.Module.
containing
Section titled “containing”Fails with MemoryError. Uses Memory.Module.
Where pattern matches once in module. name is logged with the time taken.
Fails with MemoryError.
findAll
Section titled “findAll”Every match, at most max. 0 is a thousand.
Fails with MemoryError.
regions
Section titled “regions”Readable regions, or every committed one with all. Just module’s unless it’s empty.
Fails with MemoryError. Uses Memory.Region.
protect
Section titled “protect”Gives the first page’s old protection. Put back when the plugin goes.
Fails with MemoryError. Uses Memory.Protection.
Looks for a value on a worker.
Async. Fails with ScanError. Uses Memory.Scan.Options, Memory.Scan.
MemoryError
Section titled “MemoryError”What can go wrong, besides Cancelled, Unsupported and Gone.
| Code | Error | |
|---|---|---|
| 1 | Unreadable |
Not mapped, or not readable or writable |
| 2 | Unwritable |
|
| 3 | NoModule |
No module by that name, or the address isn’t in one |
| 4 | InvalidPattern |
A byte pattern that didn’t parse |
| 5 | NotFound |
|
| 6 | NotUnique |
A pattern that matched more than once |
| 7 | TooBig |
|
| 8 | ProtectFailed |
Windows wouldn’t change it |
| 9 | Failed |
ScanError
Section titled “ScanError”What can go wrong, besides Cancelled, Unsupported and Gone.
| Code | Error | |
|---|---|---|
| 1 | InvalidValue |
A value that doesn’t parse as its type, or a compare that doesn’t suit it |
| 2 | NoModule |
|
| 3 | Busy |
Still running its last search |
| 4 | Failed |
Memory.Protection
Section titled “Memory.Protection”An enum of u8.
| Value | Name | |
|---|---|---|
| 0 | no_access |
|
| 1 | read |
|
| 2 | read_write |
|
| 3 | read_execute |
|
| 4 | read_write_execute |
Memory.Module
Section titled “Memory.Module”A loaded exe or DLL.
A struct, 0x20 bytes, aligned to 8.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | name |
string |
Like game.exe |
| 0x10 | base |
usize |
|
| 0x18 | size |
usize |
name: stringbase: numbersize: numbername: stringbase: integersize: integerstring Namenuint Basenuint Sizesal::String nameuintptr_t baseuintptr_t sizepub name: salamander::Strpub base: usizepub size: usizename: []const u8base: usizesize: usizesal_string nameuintptr_t baseuintptr_t sizeMemory.Region
Section titled “Memory.Region”A stretch of memory with the same protection.
A struct, 0x28 bytes, aligned to 8.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | start |
usize |
|
| 0x8 | length |
usize |
|
| 0x10 | readable |
bool |
|
| 0x11 | writable |
bool |
|
| 0x12 | executable |
bool |
|
| 0x18 | module |
string |
The module it’s in, if any |
start: numberlength: numberreadable: booleanwritable: booleanexecutable: booleanmodule: stringstart: integerlength: integerreadable: booleanwritable: booleanexecutable: booleanmodule: stringnuint Startnuint Lengthbool Readablebool Writablebool Executablestring Moduleuintptr_t startuintptr_t lengthbool readablebool writablebool executablesal::String modulepub start: usizepub length: usizepub readable: boolpub writable: boolpub executable: boolpub module: salamander::Strstart: usizelength: usizereadable: boolwritable: boolexecutable: boolmodule: []const u8uintptr_t startuintptr_t lengthbool readablebool writablebool executablesal_string moduleMemory.Scan.Type
Section titled “Memory.Scan.Type”string is UTF-8, utf16 is UTF-16 and bytes is a pattern.
An enum of u8.
| Value | Name | |
|---|---|---|
| 0 | u8 |
|
| 1 | u16 |
|
| 2 | u32 |
|
| 3 | u64 |
|
| 4 | i8 |
|
| 5 | i16 |
|
| 6 | i32 |
|
| 7 | i64 |
|
| 8 | f32 |
|
| 9 | f64 |
|
| 10 | string |
|
| 11 | utf16 |
|
| 12 | bytes |
Memory.Scan.Compare
Section titled “Memory.Scan.Compare”exact, greater and less take a value, between two, inclusive. The rest compare with last time.
An enum of u8.
| Value | Name | |
|---|---|---|
| 0 | exact |
|
| 1 | changed |
|
| 2 | unchanged |
|
| 3 | increased |
|
| 4 | decreased |
|
| 5 | greater |
|
| 6 | less |
|
| 7 | between |
Memory.Scan.Options
Section titled “Memory.Scan.Options”A struct, 0x40 bytes, aligned to 8.
| Offset | Field | Type | |
|---|---|---|---|
| 0x0 | type |
Memory.Scan.Type |
|
| 0x8 | value |
string |
As text, like 100, -1.5, hello or 48 8B ?? C3 |
| 0x18 | module |
string |
Just this module, instead of all readable memory |
| 0x28 | start |
usize |
Or just length bytes from here |
| 0x30 | length |
usize |
|
| 0x38 | unaligned |
bool |
Every byte, not just multiples of the value’s size. Far slower and noisier. |
| 0x39 | read_only |
bool |
Read-only memory too, when scanning all of it |
| 0x3c | limit |
u32 |
Stops after this many. 0 is a million. |
type: Wraith.Memory.Scan.Type | Wraith.Memory.Scan.TypeNamevalue: stringmodule: stringstart: numberlength: numberunaligned: booleanread_only: booleanlimit: numbertype: Wraith.Memory.Scan.Type|Wraith.Memory.Scan.TypeNamevalue: stringmodule: stringstart: integerlength: integerunaligned: booleanread_only: booleanlimit: integerWraith.Memory.Scan.Type Typestring Valuestring Modulenuint Startnuint Lengthbool Unalignedbool ReadOnlyuint LimitWraith::Memory_Scan_Type typesal::String valuesal::String moduleuintptr_t startuintptr_t lengthbool unalignedbool read_onlyuint32_t limitpub r#type: wraith::MemoryScanTypepub value: salamander::Strpub module: salamander::Strpub start: usizepub length: usizepub unaligned: boolpub read_only: boolpub limit: u32@"type": Wraith.Memory.Scan.Typevalue: []const u8module: []const u8start: usizelength: usizeunaligned: boolread_only: boollimit: u32Wraith_Memory_Scan_Type typesal_string valuesal_string moduleuintptr_t startuintptr_t lengthbool unalignedbool read_onlyuint32_t limitwraith.io · Mods on the Hub · Get Wraith
Made with ♥ by Asgard
