Difference between revisions of "Bit (API)"
From ComputerCraft Wiki
| Line 1: | Line 1: | ||
| + | The Bit API is for manipulating bits of variables. | ||
| + | |||
| + | A list of functions: | ||
| + | * bit.bnot(n) | ||
| + | * bit.band(m, n) | ||
| + | * bit.bor(m, n) | ||
| + | * bit.bxor(m, n) | ||
| + | * bit.brshift(n, bits) | ||
| + | * bit.blshift(n, bits) | ||
| + | * bit.tobits(n) | ||
| + | * bit.tobits(n) | ||
| + | * bit.tonumb(bit_tbl) | ||
| + | |||
[[Category:APIs]] | [[Category:APIs]] | ||
Revision as of 00:32, 29 January 2012
The Bit API is for manipulating bits of variables.
A list of functions:
- bit.bnot(n)
- bit.band(m, n)
- bit.bor(m, n)
- bit.bxor(m, n)
- bit.brshift(n, bits)
- bit.blshift(n, bits)
- bit.tobits(n)
- bit.tobits(n)
- bit.tonumb(bit_tbl)