Exemplo n.º 1
0
        public FileHeader(EndianBinaryReader er, string Signature, out bool OK)
        {
            bool OK1;

            this.info = new FileHeader.HeaderInfo(er, Signature, out OK1);
            if (!OK1)
            {
                OK = false;
            }
            else
            {
                this.offset = new uint[(int)this.info.dataBlocks];
                for (int index = 0; index < (int)this.info.dataBlocks; ++index)
                {
                    this.offset[index] = er.ReadUInt32();
                }
                OK = true;
            }
        }
Exemplo n.º 2
0
 public FileHeader(string Signature, ushort NrDatablocks)
 {
     this.info      = new FileHeader.HeaderInfo(Signature, NrDatablocks);
     this.offset    = new uint[(int)NrDatablocks];
     this.offset[0] = (uint)(16 + (int)NrDatablocks * 4);
 }