Skip to content

MemScanner ​

Represents a memory scanner for scanning process memory.

Kind: Class

Namespace: ConnectorLib.Inject

Inheritance: IMemoryScanner

Public Constructors

MemScanner(IntPtr processHandle)

Initializes a new instance of the ConnectorLib.Inject.MemScanner class.

Public Member Functions

ulong[]

ScanForBytes(ReadOnlySpan scanFor, ReadOnlySpan mask, int numResults, ScanHint hint, ulong? startAddress, ulong? endAddress)

IAsyncEnumerable

ScanForBytesAsync(byte[] scanFor, string mask, int threadCount, ScanHint hint, ulong? startAddress, ulong? endAddress)

long[]

ScanForBytes(AllocationProtectEnum pageMask, byte[] scanFor, string mask = null, bool oneOnly = true, long? startAddress = null, long? endAddress = null)

ulong[]

ScanForBytes(AllocationProtectEnum pageMask, byte[] scanFor, string mask = null, bool oneOnly = true, ulong? startAddress = null, ulong? endAddress = null)

long[]

ScanForBytes(AllocationProtectEnum pageMask, byte[] scanFor, ReadOnlySpan mask, bool oneOnly = true, long? startAddress = null, long? endAddress = null)

ulong[]

ScanForBytes(AllocationProtectEnum pageMask, byte[] scanFor, ReadOnlySpan mask, bool oneOnly = true, ulong? startAddress = null, ulong? endAddress = null)

ulong[]

ScanForBytes(AllocationProtectEnum pageMask, ReadOnlySpan scanFor, string mask = null, bool oneOnly = true, ulong? startAddress = null, ulong? endAddress = null)

long[]

ScanForBytes(AllocationProtectEnum pageMask, ReadOnlySpan scanFor, string mask = null, bool oneOnly = true, long? startAddress = null, long? endAddress = null)

ulong[]

ScanForBytes(AllocationProtectEnum pageMask, ReadOnlySpan scanFor, ReadOnlySpan mask, bool oneOnly = true, ulong? startAddress = null, ulong? endAddress = null)

long[]

ScanForBytes(AllocationProtectEnum pageMask, ReadOnlySpan scanFor, ReadOnlySpan mask, bool oneOnly = true, long? startAddress = null, long? endAddress = null)

IAsyncEnumerable

ScanForBytesAsync(AllocationProtectEnum pageMask, byte[] scanFor, string mask = null, int threadCount = 16, ulong? startAddress = null, ulong? endAddress = null)

IAsyncEnumerable

ScanForBytesAsync(AllocationProtectEnum pageMask, byte[] scanFor, string mask = null, int threadCount = 16, long? startAddress = null, long? endAddress = null)

Public Static Functions

bool

FindPattern(byte[] buffer, byte[] pattern, string mask, long out foundAt)

Finds a pattern in a byte array.

bool

FindPattern(ReadOnlySpan ref buffer, ReadOnlySpan ref pattern, ReadOnlySpan ref mask, long out foundAt)

Finds a pattern in a byte array.