Skip to content

Commit

Permalink
Fixed a MemoryRange related mistake in example code for FindBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Doublevil committed Apr 6, 2024
1 parent 9b7660f commit cb4ae30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/FindBytes.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ You can also specify a custom range by creating a `MemoryRange` instance:
```csharp
// Both of the following ranges can be used to search from 0x5000 to 0x5FFF included
var rangeWithStartAndEnd = new MemoryRange(0x5000, 0x5FFF);
var rangeWithStartAndSize = new MemoryRange(0x5000, 0x1000);
var rangeWithStartAndSize = MemoryRange.FromStartAndSize(0x5000, 0x1000);
```

To optimize the performance of your search, you should always specify a range. Usually, you can figure out at least the module that contains the value you are looking for, but the more specific you can be, the faster the search will be.
Expand Down

0 comments on commit cb4ae30

Please sign in to comment.