SymDocumentWriter.cs 678 B

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