using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Villain.Data.Types
{
	public sealed class BitField<TValue> where TValue : struct
	{
		//private TValue _value;
		//private UInt32 _valueBitLength;

		//private UInt32 _position = 0;

		//public BitField(TValue value)
		//{
		//	_value = value;

		//	Type valueType = typeof(value);


		//}

		//public T Read<T>(UInt32 size)
		//{
		//	long mask = 0;
		//	for (int i = 0; i < fieldLength; i++)
		//		mask |= 1 << i;
		
		//	return (T)((_value >> (_valueBitLength - size - _position)) & (_valueBitLength - 1));
		//}
	}
}