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); }
public ImageDebugHeader(ImageDebugHeaderEntry entry) : this(new [] { entry }) { }