1
- using System ;
1
+ using System ;
2
2
using System . Collections . Generic ;
3
3
using System . Diagnostics . Contracts ;
4
4
using System . Threading ;
5
5
using ReClassNET . MemoryScanner . Comparer ;
6
6
7
7
namespace ReClassNET . MemoryScanner
8
8
{
9
- internal class ScannerWorker
9
+ internal class ScannerWorker : IScannerWorker
10
10
{
11
11
private readonly ScanSettings settings ;
12
12
private readonly IScanComparer comparer ;
@@ -20,13 +20,6 @@ public ScannerWorker(ScanSettings settings, IScanComparer comparer)
20
20
this . comparer = comparer ;
21
21
}
22
22
23
- /// <summary>
24
- /// Uses the <see cref="IScanComparer"/> to scan the byte array for results.
25
- /// </summary>
26
- /// <param name="data">The data to scan.</param>
27
- /// <param name="count">The length of the <paramref name="data"/> parameter.</param>
28
- /// <param name="ct">The <see cref="CancellationToken"/> to stop the scan.</param>
29
- /// <returns>An enumeration of all <see cref="ScanResult"/>s.</returns>
30
23
public IList < ScanResult > Search ( byte [ ] data , int count , CancellationToken ct )
31
24
{
32
25
Contract . Requires ( data != null ) ;
@@ -53,15 +46,6 @@ public IList<ScanResult> Search(byte[] data, int count, CancellationToken ct)
53
46
return results ;
54
47
}
55
48
56
- /// <summary>
57
- /// Uses the <see cref="IScanComparer"/> to scan the byte array for results.
58
- /// The comparer uses the provided previous results to compare to the current value.
59
- /// </summary>
60
- /// <param name="data">The data to scan.</param>
61
- /// <param name="count">The length of the <paramref name="data"/> parameter.</param>
62
- /// <param name="previousResults">The previous results to use.</param>
63
- /// <param name="ct">The <see cref="CancellationToken"/> to stop the scan.</param>
64
- /// <returns>An enumeration of all <see cref="ScanResult"/>s.</returns>
65
49
public IList < ScanResult > Search ( byte [ ] data , int count , IEnumerable < ScanResult > previousResults , CancellationToken ct )
66
50
{
67
51
Contract . Requires ( data != null ) ;
0 commit comments