bit32ライブラリ
ライブラリ日本語解説は準備中
ひとことで言うと
bit32は、ロブロックス(Roblox)のライブラリです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):A library of functions to perform bitwise operations.
関数(15)
| 名前と書き方 | 説明 |
|---|---|
arshiftbit32.arshift(x: number, disp: number): number | Returns a number after its bits have been arithmetically shifted to the right by a given displacement. |
bandbit32.band(numbers: Tuple): number | Returns the bitwise AND of all provided numbers. |
bnotbit32.bnot(x: number): number | Returns the bitwise negation of a given number. |
borbit32.bor(numbers: Tuple): number | Returns the bitwise OR of all provided numbers. |
btestbit32.btest(numbers: Tuple): bool | Returns a boolean describing whether the bitwise and of its operands is different from zero. |
bxorbit32.bxor(numbers: Tuple): number | Returns the bitwise XOR of all provided numbers. |
byteswapbit32.byteswap(x: number): number | Returns the given number with the order of the bytes swapped. |
countlzbit32.countlz(n: number): number | Returns the number of consecutive zero bits in the 32-bit representation of the provided number starting from the left-most (most significant) bit. |
countrzbit32.countrz(n: number): number | Returns the number of consecutive zero bits in the 32-bit representation of the provided number starting from the right-most (least significant) bit. |
extractbit32.extract(n: number, field: number, width: number): number | Extract a range of bits from a number and return them as an unsigned number. |
replacebit32.replace(n: number, v: number, field: number, width: number): number | Return a copy of a number with a range of bits replaced by a given value. |
lrotatebit32.lrotate(x: number, disp: number): number | Returns a number after its bits have been rotated to the left by a given number of times. |
lshiftbit32.lshift(x: number, disp: number): number | Returns a number whose bits have been logically shifted to the left by a given displacement. |
rrotatebit32.rrotate(x: number, disp: number): number | Returns a number after its bits have been rotated to the right by a given number of times. |
rshiftbit32.rshift(x: number, disp: number): number | Returns a number whose bits have been logically shifted to the right by a given displacement. |
英語の説明とメンバーの一覧は、Roblox Creator Documentation(bit32)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。