BN089-BS开发框架MVC4版/source20131023/Zephyr.Net/Zephyr.Utils/Document/Excel/ExcelLibrary/Office/CompoundDocumentFormat/CompoundFileHeader.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Text;

namespace Zephyr.Utils.ExcelLibrary.CompoundDocumentFormat
{
    public class CompoundFileHeader : FileHeader
    {
        public new static readonly byte[] FileTypeIdentifier = new byte[8] { 0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1 };
        /// <summary>
        /// Create a CompoundFileHeader with default values.
        /// </summary>
        public CompoundFileHeader()
        {
            base.FileTypeIdentifier = FileTypeIdentifier;
            FileIdentifier = Guid.NewGuid();
            RevisionNumber = 0x3E;
            VersionNumber = 0x03;
            ByteOrderMark = ByteOrderMarks.LittleEndian;
            SectorSizeInPot = 9;
            ShortSectorSizeInPot = 6;
            UnUsed10 = new byte[10];
            UnUsed4 = new byte[4];
            MinimumStreamSize = 4096;
            FirstSectorIDofShortSectorAllocationTable = SID.EOC;
            FirstSectorIDofMasterSectorAllocationTable = SID.EOC;
            FirstSectorIDofDirectoryStream = SID.EOC;
            MasterSectorAllocationTable = new Int32[109];
            for (int i = 0; i < MasterSectorAllocationTable.Length; i++)
            {
                MasterSectorAllocationTable[i] = SID.Free;
            }
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。