Try Install Learn Blog API Packages GitHub
Pages

Bitwise

Bitwise operations.

Directly uses the javascript operators.

All numbers are converted to 32 bit integers.

More Information: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#bitwise_operators

Functions

and
(
l
:
Number
r
:
Number
)
:
Number

Bitwise and

leftShift
(
shiftCount
:
Number
number
:
Number
)
:
Number

Bitwise left shift

not
(
n
:
Number
)
:
Number

Bitwise not

or
(
l
:
Number
r
:
Number
)
:
Number

Bitwise or

rightShift
(
shiftCount
:
Number
number
:
Number
)
:
Number

Bitwise right shift

xor
(
l
:
Number
r
:
Number
)
:
Number

Bitwise xor

zeroFillRightShift
(
shiftCount
:
Number
number
:
Number
)
:
Number

Bitwise zero filling right shift