EOF.cs 674 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Runtime.InteropServices;
  5. using Biff8Excel.Interfaces;
  6. namespace Biff8Excel.Records
  7. {
  8. [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Auto, Pack = 1)]
  9. struct RecordEOF
  10. {
  11. public ushort opcode;
  12. public ushort length;
  13. }
  14. internal class EOF : IRecords
  15. {
  16. RecordEOF eof;
  17. private EOF()
  18. {
  19. eof.opcode = 0xA;
  20. eof.length = 0x0;
  21. }
  22. #region IRecords ³ÉÔ±
  23. public byte[] GetByte()
  24. {
  25. return Globals.GetStructToBytes(eof);
  26. }
  27. #endregion
  28. }
  29. }