diff --git a/QQWry/BinaryReaderExtensions.cs b/QQWry/BinaryReaderExtensions.cs index 4eb0e3c..351ff57 100644 --- a/QQWry/BinaryReaderExtensions.cs +++ b/QQWry/BinaryReaderExtensions.cs @@ -6,7 +6,7 @@ namespace QQWry { - internal static class BinaryReaderExtensions + public static class BinaryReaderExtensions { // Note this MODIFIES THE GIVEN ARRAY then returns a reference to the modified array. public static byte[] Reverse(this byte[] b) diff --git a/QQWryTest/QQWryIpSearchTest.cs b/QQWryTest/QQWryIpSearchTest.cs index 5793b5e..d7caec9 100644 --- a/QQWryTest/QQWryIpSearchTest.cs +++ b/QQWryTest/QQWryIpSearchTest.cs @@ -12,7 +12,7 @@ namespace QQWry.Test { public class QQWryIpSearchTest { - protected QQWryIpSearchMode2 GetInstance() + protected QQWryIpSearch GetInstance() { var dbPath = Path.Combine(AppContext.BaseDirectory, "qqwry.dat"); @@ -22,7 +22,7 @@ protected QQWryIpSearchMode2 GetInstance() QQWryUrl = "https://github.com/JadynWong/IP_qqwry/raw/test/qqwry.rar", CopyWriteUrl = "https://github.com/JadynWong/IP_qqwry/raw/test/copywrite.rar" }; - QQWryIpSearchMode2 ipSearch = new QQWryIpSearchMode2(option); + QQWryIpSearch ipSearch = new QQWryIpSearch(option); return ipSearch; } @@ -169,7 +169,7 @@ public void MultiThreadingSafeTest() { var ipSearch = GetInstance(); - var maxTask = 100000; + var maxTask = 30000; var p = Parallel.For(0, maxTask, new ParallelOptions() { diff --git a/QQWry/IpDbAccessor.cs b/Sample/Mode2/IpDbAccessor.cs similarity index 100% rename from QQWry/IpDbAccessor.cs rename to Sample/Mode2/IpDbAccessor.cs diff --git a/QQWry/QQWryIpSearchMode2.cs b/Sample/Mode2/QQWryIpSearchMode2.cs similarity index 100% rename from QQWry/QQWryIpSearchMode2.cs rename to Sample/Mode2/QQWryIpSearchMode2.cs