Menu

operators-band

Will Pittenger

Provides a way to AND together two unsigned integers such that each bit in the result is the boolean AND of the two corresponding bits in the operands. This is equivalent to the & operator in C/C++/C#/Java. Implemented by the types byte, word, dbyte, qbyte, and obyte.

Typical prototype

The "T" represents the actual unsigned integer type being used.

operator band var T left, var T right
  returns T

Related

Wiki: Custom operators
Wiki: Operators
Wiki: operators-and
Wiki: operators-bnand
Wiki: operators-bnor
Wiki: operators-bnot
Wiki: operators-bor
Wiki: operators-bxnor
Wiki: operators-bxor
Wiki: operators-nand
Wiki: operators-nor
Wiki: operators-not
Wiki: operators-or
Wiki: operators-xnor
Wiki: operators-xor