Example #1
0
        /// <summary>
        /// Adds a hot table
        /// </summary>
        /// <param name="hotTable">The hot table</param>
        public void Add(HotTable hotTable)
        {
            var table = hotTable.Table;

            if ((uint)table >= (uint)headers.Length)
            {
                throw new ArgumentException("Invalid table type");
            }
            headers[(int)table] = hotTable;
        }
Example #2
0
		/// <summary>
		/// Adds a hot table
		/// </summary>
		/// <param name="hotTable">The hot table</param>
		public void Add(HotTable hotTable) {
			var table = hotTable.Table;
			if ((uint)table >= (uint)headers.Length)
				throw new ArgumentException("Invalid table type");
			headers[(int)table] = hotTable;
		}