using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using Biff8Excel.Interfaces;

namespace Biff8Excel.Records
{
    [StructLayoutAttribute(LayoutKind.Sequential, CharSet = CharSet.Auto, Pack = 1)]
    struct RecordEOF
    {
        public ushort opcode;
        public ushort length;
    }

    internal class EOF : IRecords
    {
        RecordEOF eof;

        private EOF()
        {
            eof.opcode = 0xA;
            eof.length = 0x0;
        }

        #region IRecords ��Ա

        public byte[] GetByte()
        {
            return Globals.GetStructToBytes(eof); 
        }

        #endregion
    }
}