Пример #1
0
        protected int AddVariableBlock(int num_entries, DatVariableType var)
        {
            DatVariable new_variable = new DatVariable(var, offset, num_entries);

            int rv = variables.Count;

            variables.Add(new_variable);

            offset += new_variable.BlockSize();

            return(rv);
        }
Пример #2
0
		protected int AddVariableBlock (int num_entries, DatVariableType var)
		{
			DatVariable new_variable = new DatVariable (var, offset, num_entries);

			int rv = variables.Count;

			variables.Add (new_variable);

			offset += new_variable.BlockSize ();

			return rv;
		}
Пример #3
0
 public DatVariable(DatVariableType type, int offset, int num_entries)
 {
     this.type        = type;
     this.offset      = offset;
     this.num_entries = num_entries;
 }
Пример #4
0
		public DatVariable (DatVariableType type, int offset, int num_entries)
		{
			this.type = type;
			this.offset = offset;
			this.num_entries = num_entries;
		}