| 1 |
// |
| 2 |
// Author: |
| 3 |
// Juerg Billeter ([email protected]) |
| 4 |
// |
| 5 |
// (C) 2008 Juerg Billeter |
| 6 |
// |
| 7 |
// Licensed under the MIT/X11 license. |
| 8 |
// |
| 9 |
|
| 10 |
using System; |
| 11 |
|
| 12 |
namespace Mono.Cecil.Pdb |
| 13 |
{ |
| 14 |
internal class SymDocumentWriter |
| 15 |
{ |
| 16 |
readonly ISymUnmanagedDocumentWriter writer; |
| 17 |
|
| 18 |
public ISymUnmanagedDocumentWriter Writer |
| 19 |
{ |
| 20 |
get { return writer; } |
| 21 |
} |
| 22 |
|
| 23 |
public SymDocumentWriter (ISymUnmanagedDocumentWriter writer) |
| 24 |
{ |
| 25 |
this.writer = writer; |
| 26 |
} |
| 27 |
|
| 28 |
public void SetSource (byte [] source) |
| 29 |
{ |
| 30 |
writer.SetSource ((uint) source.Length, source); |
| 31 |
} |
| 32 |
|
| 33 |
public void SetCheckSum (Guid hashAlgo, byte [] checkSum) |
| 34 |
{ |
| 35 |
writer.SetCheckSum (hashAlgo, (uint) checkSum.Length, checkSum); |
| 36 |
} |
| 37 |
} |
| 38 |
} |