Functions
bitor
bitor(a, b) -> int
- a
int
- b
int
int
- The result of (a | b).
bitor_many
bitor_many(operands...) -> int
- operands
int...
int
- The result of all operands on (0 | operand[1] | operand[2]...).
bitand
bitand(a, b) -> int
- a
int
- b
int
int
- The result of (a & b).
bitxor
bitxor(a, b) -> int
- a
int
- b
int
int
- The result of (a ^ b).
bitclear
bitclear(a, b) -> int
Equivalent to (a & (~b)). Keeps the bits in 'a' where the bit in 'b' is 0, otherwise the bit is 0.
- a
int
- b
int
int
- The result of (a &^ b).
bitnot
bitnot(a) -> int
- a
int
int
- The result of (^a).
bit_rshift
bit_rshift(a, b) -> int
- a
int
- b
int
int
- The result of (a >> b).
bit_lshift
bit_lshift(a, b) -> int
- a
int
- b
int
int
- The result of (a << b).
byte_string
byte_string(nums...) -> string
- nums
int...
- A list of numbers to convert to bytes. These will be treated as uint8.
string
- The byte string representation of the numbers.