BitFunction uses FunctionCallTrait
AQL offers functions for bit manipulation on unsigned integers (0 … 2³² - 1, up to 32 bits).
Tags
Table of Contents
Constants
- BIT_AND : string = 'BIT_AND'
- Return the bitwise AND of an array of numbers, or of two number operands.
- BIT_CONSTRUCT : string = 'BIT_CONSTRUCT'
- Construct a number from an array of bit positions to set (zero-based).
- BIT_DECONSTRUCT : string = 'BIT_DECONSTRUCT'
- Deconstruct a number into the array of its set bit positions (zero-based).
- BIT_FROM_STRING : string = 'BIT_FROM_STRING'
- Parse a bitstring (e.g. "0101") into its numeric value.
- BIT_NEGATE : string = 'BIT_NEGATE'
- Return the bitwise negation of a number, keeping up to the given number of bits.
- BIT_OR : string = 'BIT_OR'
- Return the bitwise OR of an array of numbers, or of two number operands.
- BIT_POPCOUNT : string = 'BIT_POPCOUNT'
- Return the number of bits set to 1 in a number (population count).
- BIT_SHIFT_LEFT : string = 'BIT_SHIFT_LEFT'
- Bitwise-shift the bits of a number to the left, keeping up to the given number of bits.
- BIT_SHIFT_RIGHT : string = 'BIT_SHIFT_RIGHT'
- Bitwise-shift the bits of a number to the right, keeping up to the given number of bits.
- BIT_TEST : string = 'BIT_TEST'
- Test whether the bit at the given (zero-based) position is set in a number.
- BIT_TO_STRING : string = 'BIT_TO_STRING'
- Return the bitstring representation of a number, with the given number of bits.
- BIT_XOR : string = 'BIT_XOR'
- Return the bitwise XOR of an array of numbers, or of two number operands.
Constants
BIT_AND
Return the bitwise AND of an array of numbers, or of two number operands.
public
string
BIT_AND
= 'BIT_AND'
Tags
BIT_CONSTRUCT
Construct a number from an array of bit positions to set (zero-based).
public
string
BIT_CONSTRUCT
= 'BIT_CONSTRUCT'
Tags
BIT_DECONSTRUCT
Deconstruct a number into the array of its set bit positions (zero-based).
public
string
BIT_DECONSTRUCT
= 'BIT_DECONSTRUCT'
Tags
BIT_FROM_STRING
Parse a bitstring (e.g. "0101") into its numeric value.
public
string
BIT_FROM_STRING
= 'BIT_FROM_STRING'
Tags
BIT_NEGATE
Return the bitwise negation of a number, keeping up to the given number of bits.
public
string
BIT_NEGATE
= 'BIT_NEGATE'
Tags
BIT_OR
Return the bitwise OR of an array of numbers, or of two number operands.
public
string
BIT_OR
= 'BIT_OR'
Tags
BIT_POPCOUNT
Return the number of bits set to 1 in a number (population count).
public
string
BIT_POPCOUNT
= 'BIT_POPCOUNT'
Tags
BIT_SHIFT_LEFT
Bitwise-shift the bits of a number to the left, keeping up to the given number of bits.
public
string
BIT_SHIFT_LEFT
= 'BIT_SHIFT_LEFT'
Tags
BIT_SHIFT_RIGHT
Bitwise-shift the bits of a number to the right, keeping up to the given number of bits.
public
string
BIT_SHIFT_RIGHT
= 'BIT_SHIFT_RIGHT'
Tags
BIT_TEST
Test whether the bit at the given (zero-based) position is set in a number.
public
string
BIT_TEST
= 'BIT_TEST'
Tags
BIT_TO_STRING
Return the bitstring representation of a number, with the given number of bits.
public
string
BIT_TO_STRING
= 'BIT_TO_STRING'
Tags
BIT_XOR
Return the bitwise XOR of an array of numbers, or of two number operands.
public
string
BIT_XOR
= 'BIT_XOR'