Bit32

From GiderosMobile
Revision as of 18:32, 22 January 2023 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ <!-- GIDEROSOBJ:bit32 --> '''Supported platforms:''' File:Platform android.pngFile:Platform ios.pngFile:Platform mac.pngFile:Platform pc.pngFile:Pl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
Available since: Gideros 2022.3

Description

This library is a back-ported feature from Lua 5.2 that provides functions to perform bitwise operations.

Methods

bit32.arshift returns a number after its bits have been arithmetically shifted to the right by a given displacement
bit32.band returns the bitwise and of its operands
bit32.bnot returns the bitwise negation of a given number
bit32.bor returns the bitwise or of its operands
bit32.btest returns a boolean describing whether the bitwise and of its operands is different from zero

Events

Constants