Example #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);
        }
Example #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;
		}
Example #3
0
 public DatVariable(DatVariableType type, int offset, int num_entries)
 {
     this.type        = type;
     this.offset      = offset;
     this.num_entries = num_entries;
 }
Example #4
0
		public DatVariable (DatVariableType type, int offset, int num_entries)
		{
			this.type = type;
			this.offset = offset;
			this.num_entries = num_entries;
		}