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

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

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

--- trunk/RomCheater/Serialization/SearchResultWriter.cs	2013/06/06 07:49:01	576
+++ trunk/RomCheater/Serialization/SearchResultWriter.cs	2013/06/06 07:56:04	577
@@ -27,18 +27,18 @@
     public class SearchResultWriter : SerializationWriter, ISearchResultWriter
     {
 
-        private int ResultsWritten = 0;
+        private ulong ResultsWritten = 0;
         protected override string TemporaryFolder { get { return SearchResultsConstants.SearchResultsFolder; } }
         //public SearchResultWriter() : base() { }
         public SearchResultWriter(Guid guid) : this(0, guid) { }
         public SearchResultWriter(Guid guid, bool delete) : this(0, guid, delete) { }
-        public SearchResultWriter(int resultCount, Guid guid) : this(resultCount, guid,false) {  }
-        public SearchResultWriter(int resultCount, Guid guid, bool delete) : base(resultCount, guid,delete) { WriteHeader(guid); }
+        public SearchResultWriter(ulong resultCount, Guid guid) : this(resultCount, guid, false) { }
+        public SearchResultWriter(ulong resultCount, Guid guid, bool delete) : base(resultCount, guid, delete) { WriteHeader(guid); }
         //public SearchResultWriter(string filename, Guid guid) : base(CreateFileName(filename,guid), guid) { WriteHeader(guid); }
         //public SearchResultWriter(string filename, int resultCount, Guid guid) : base(filename, resultCount, guid, false) { WriteHeader(guid); }
         //public SearchResultWriter(string filename, int resultCount, Guid guid, bool delete) : base(filename, resultCount, guid, delete) { WriteHeader(guid); }      
         #region ISearchResultWriter members
-        public void WriteResult<TValue>(uint address, TValue value) where TValue : IConvertible
+        public void WriteResult<TValue>(ulong address, TValue value) where TValue : IConvertible
         {
             try
             {
@@ -103,7 +103,7 @@
                 }
                 // write count (int)
                 binWriter.Write(ResultCount);
-                ResultCountOffset = binWriter.BaseStream.Position - sizeof(int);
+                ResultCountOffset = binWriter.BaseStream.Position - sizeof(ulong);
             }
             catch (Exception ex)
             {

 

  ViewVC Help
Powered by ViewVC 1.1.22