-
Notifications
You must be signed in to change notification settings - Fork 396
Expand file tree
/
Copy pathIScannerWorker.cs
More file actions
29 lines (27 loc) · 1.32 KB
/
IScannerWorker.cs
File metadata and controls
29 lines (27 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System.Collections.Generic;
using System.Threading;
using ReClassNET.MemoryScanner.Comparer;
namespace ReClassNET.MemoryScanner
{
internal interface IScannerWorker
{
/// <summary>
/// Uses the <see cref="IScanComparer"/> to scan the byte array for results.
/// </summary>
/// <param name="data">The data to scan.</param>
/// <param name="count">The length of the <paramref name="data"/> parameter.</param>
/// <param name="ct">The <see cref="CancellationToken"/> to stop the scan.</param>
/// <returns>An enumeration of all <see cref="ScanResult"/>s.</returns>
IList<ScanResult> Search(byte[] data, int count, CancellationToken ct);
/// <summary>
/// Uses the <see cref="IScanComparer"/> to scan the byte array for results.
/// The comparer uses the provided previous results to compare to the current value.
/// </summary>
/// <param name="data">The data to scan.</param>
/// <param name="count">The length of the <paramref name="data"/> parameter.</param>
/// <param name="previousResults">The previous results to use.</param>
/// <param name="ct">The <see cref="CancellationToken"/> to stop the scan.</param>
/// <returns>An enumeration of all <see cref="ScanResult"/>s.</returns>
IList<ScanResult> Search(byte[] data, int count, IEnumerable<ScanResult> previousResults, CancellationToken ct);
}
}