Difference between revisions of "Bit"

From GiderosMobile
Line 26: Line 26:
 
|}
 
|}
  
{{Bit}}
+
{{GIDEROS IMPORTANT LINKS}}

Revision as of 16:12, 30 January 2020


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

Description

Provides bit based operations

Methods

bit.arshift Returns the bitwise arithmetic right-shift
bit.band Returns the bitwise and of its argument.
bit.bnot Returns the bitwise not of its argument.
bit.bor Returns the bitwise or of its argument.
bit.bswap Swaps the bytes of its argument and returns it
bit.bxor Returns the bitwise xor of its argument.
bit.lshift Returns the bitwise logical left-shift
bit.rol Returns the bitwise left rotation
bit.ror Returns the bitwise right rotation
bit.rshift Returns the bitwise logical right-shift
bit.tobit Normalizes a number to the numeric range for bit operations
bit.tohex Converts its first argument to a hex string.

Events

Constants