BitField.BitField.operator C# (CSharp) 메소드

operator() 정적인 공개 메소드

各ビットに対して AND 演算。
/// a.Width != b.Width のとき発生。 ///
static public operator ( ) : BitField
리턴 BitField
		static public BitField operator& (BitField a, BitField b)
		{
			if(a.Width != b.Width)
				throw new BitFieldException("width not match");

			ulong val = a.Value & b.Value;
			return new BitFieldImmediate(a.Msb, a.Lsb, val);
		}

Same methods

BitField::operator ( ) : bool