/[RomCheater]/trunk/RomCheater/Serialization/SearchResultReader.cs
ViewVC logotype

Diff of /trunk/RomCheater/Serialization/SearchResultReader.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater/Serialization/SearchResultReader.cs	2013/06/03 02:16:41	458
+++ trunk/RomCheater/Serialization/SearchResultReader.cs	2013/06/03 02:23:04	459
@@ -164,6 +164,19 @@
             return items;
         }
 
+
+        public uint[] GetResultAddresses(SearchType SearchArgs, IAcceptsProcessAndConfig iapc, ProgressBarWithPercentageLabel progress)
+        {
+            var arr = GetResults(SearchArgs, iapc, progress);
+            uint[] items = new uint[arr.Count()];
+            for (int i = 0; i < items.Count(); i++)
+            {
+                var v = arr[i];
+                items[i] = v.Address;
+                arr[i] = null; // free memory used by the data
+            }
+            return items;
+        }
         public ResultType<object>[] GetResults(SearchType SearchArgs, IAcceptsProcessAndConfig iapc, ProgressBarWithPercentageLabel progress)
         {
             return GetResultsInternal(SearchArgs, iapc, progress);

 

  ViewVC Help
Powered by ViewVC 1.1.22