Ejemplo n.º 1
0
        private void UpdateDefaultRecordLength()
        {
            uint len = 2;

            for (int i = 0; i < base.Columns.Count; ++i)
            {
                SHNColumn col = (SHNColumn)base.Columns[i];
                len += (uint)col.Length;
            }
            this.DefaultRecordLength = len;
        }
Ejemplo n.º 2
0
        public void GenerateColumns(SHNReader reader)
        {
            int unkcolumns = 0;
            int Length     = 2;

            for (int i = 0; i < ColumnCount; ++i)
            {
                SHNColumn col = new SHNColumn();
                col.Load(reader, ref unkcolumns);
                Length += col.Length;
                base.Columns.Add(col);
            }
            if (Length != DefaultRecordLength)
            {
                throw new Exception("Default record Length does not fit.");
            }
        }