Beispiel #1
0
        /// <summary>
        /// Reads the contents of the <see cref="SARC"/> header and file info tables.
        /// </summary>
        private void ReadSARC()
        {
            Magic = new string(br.ReadChars(4));
            if (!SigMatches)
            {
                return;
            }

            HeaderSize = br.ReadUInt16();
            Endianness = br.ReadUInt16();
            FileSize   = br.ReadUInt32();
            DataOffset = br.ReadUInt32();
            Unknown    = br.ReadUInt32();

            SFAT = new SFAT(br);
            SFNT = new SFNT(br);
        }
Beispiel #2
0
 /// <summary>
 /// Initializes an empty <see cref="SARC"/>.
 /// </summary>
 public SARC()
 {
     SFAT = new SFAT();
     SFNT = new SFNT();
 }