public static ISymUnmanagedReader5 CreateSymReaderFromResource(TestResource artifacts)
 {
     return(CreateReader(new MemoryStream(artifacts.Pdb), metadataImporter: new SymMetadataImport(new MemoryStream(artifacts.PE))));
 }
        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));
        }
Example #3
0
 public static ISymUnmanagedReader5 CreateSymReaderFromResource(TestResource artifacts)
 {
     return(CreateReader(new MemoryStream(artifacts.Pdb), new MemoryStream(artifacts.PE)));
 }