Пример #1
0
 public static ISymUnmanagedReader5 CreateSymReaderFromResource(TestResource artifacts)
 {
     return(CreateReader(new MemoryStream(artifacts.Pdb), metadataImporter: new SymMetadataImport(new MemoryStream(artifacts.PE))));
 }
Пример #2
0
        public static void UpdateSymReaderFromResource(ISymUnmanagedReader symReader, TestResource artifacts, SymUnmanagedLineDelta[] lineDeltas = null)
        {
            lineDeltas = lineDeltas ?? Array.Empty <SymUnmanagedLineDelta>();

            var symUpdate = (ISymUnmanagedEncUpdate)symReader;
            var deltaPdb  = SymUnmanagedStreamFactory.CreateStream(new MemoryStream(artifacts.Pdb));

            Assert.Equal(HResult.S_OK, symUpdate.UpdateSymbolStore2(deltaPdb, lineDeltas, lineDeltas.Length));
        }
Пример #3
0
 public static ISymUnmanagedReader5 CreateSymReaderFromResource(TestResource artifacts)
 {
     return(CreateReader(new MemoryStream(artifacts.Pdb), new MemoryStream(artifacts.PE)));
 }