예제 #1
0
        static Stream GetPortablePdbStream(ImageDebugHeaderEntry entry)
        {
            var compressed_stream = new MemoryStream(entry.Data);
            var reader            = new BinaryStreamReader(compressed_stream);

            reader.ReadInt32();              // signature
            var length = reader.ReadInt32();
            var decompressed_stream = new MemoryStream(length);

            using (var deflate_stream = new DeflateStream(compressed_stream, CompressionMode.Decompress, leaveOpen: true))
                deflate_stream.CopyTo(decompressed_stream);

            return(decompressed_stream);
        }
예제 #2
0
 public ImageDebugHeader(ImageDebugHeaderEntry entry)
     : this(new [] { entry })
 {
 }