Skip to content

Commit 10c31de

Browse files
committed
Add support for serialize reference
1 parent 7ba573f commit 10c31de

19 files changed

Lines changed: 646 additions & 231 deletions

Analyzer/AnalyzerTool.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,13 @@ public int Analyze(string path, string databaseName, string searchPattern, bool
173173
}
174174
}
175175
}
176-
catch (Exception)
176+
catch (Exception e)
177177
{
178178
Console.Error.WriteLine();
179-
Console.Error.WriteLine($"Error processing file {file}.");
179+
Console.Error.WriteLine($"Error processing file {file}!");
180+
Console.Write($"{e.GetType()}: ");
181+
Console.WriteLine(e.Message);
182+
Console.WriteLine(e.StackTrace);
180183
}
181184

182185
++i;
@@ -243,7 +246,7 @@ void ProcessSerializedFile(string path, int serializedFileId, SQLiteConnection d
243246
m_TypeSet.Add(obj.TypeId);
244247
}
245248

246-
var randomAccessReader = new RandomAccessReader(root, reader, offset);
249+
var randomAccessReader = new RandomAccessReader(sf, root, reader, offset);
247250

248251
string name = null;
249252
long streamedDataSize = 0;
@@ -278,7 +281,7 @@ void ProcessSerializedFile(string path, int serializedFileId, SQLiteConnection d
278281

279282
if (m_extractReferences)
280283
{
281-
var pptrReader = new PPtrReader(root, reader, offset, (fileId, pathId, propertyPath) => AddReference(currentObjectId, GetObjectId(localToDbFileId[fileId], pathId), propertyPath));
284+
var pptrReader = new PPtrReader(sf, root, reader, offset, (fileId, pathId, propertyPath) => AddReference(currentObjectId, GetObjectId(localToDbFileId[fileId], pathId), propertyPath));
282285
}
283286
}
284287
}

0 commit comments

Comments
 (0)