bit32ライブラリ

ライブラリ日本語解説は準備中

ひとことで言うと

bit32は、ロブロックス(Roblox)のライブラリです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。

公式の説明(英語):A library of functions to perform bitwise operations.

関数(15)

名前と書き方説明
arshift
bit32.arshift(x: number, disp: number): number
Returns a number after its bits have been arithmetically shifted to the right by a given displacement.
band
bit32.band(numbers: Tuple): number
Returns the bitwise AND of all provided numbers.
bnot
bit32.bnot(x: number): number
Returns the bitwise negation of a given number.
bor
bit32.bor(numbers: Tuple): number
Returns the bitwise OR of all provided numbers.
btest
bit32.btest(numbers: Tuple): bool
Returns a boolean describing whether the bitwise and of its operands is different from zero.
bxor
bit32.bxor(numbers: Tuple): number
Returns the bitwise XOR of all provided numbers.
byteswap
bit32.byteswap(x: number): number
Returns the given number with the order of the bytes swapped.
countlz
bit32.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.
countrz
bit32.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.
extract
bit32.extract(n: number, field: number, width: number): number
Extract a range of bits from a number and return them as an unsigned number.
replace
bit32.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.
lrotate
bit32.lrotate(x: number, disp: number): number
Returns a number after its bits have been rotated to the left by a given number of times.
lshift
bit32.lshift(x: number, disp: number): number
Returns a number whose bits have been logically shifted to the left by a given displacement.
rrotate
bit32.rrotate(x: number, disp: number): number
Returns a number after its bits have been rotated to the right by a given number of times.
rshift
bit32.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)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む