Difference between revisions of "Bit"

From GiderosMobile
(deprecated plugin since gideros 2022.1)
 
Line 6: Line 6:
 
=== Description ===
 
=== Description ===
  
'''<big>THIS PLUGIN IS DEPRECATED SINCE GIDEROS 2022.1</big>'''
+
'''<big>THIS PLUGIN IS DEPRECATED SINCE GIDEROS 2022.1: use [[Bitwise_Operators|BITWISE OPERATORS]] instead</big>'''
  
 
Provides bit based operations.
 
Provides bit based operations.
Line 12: Line 12:
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 +
 
=== Methods ===
 
=== Methods ===
 
[[bit.arshift]] ''returns the bitwise arithmetic right-shift''<br/><!-- GIDEROSMTD:bit.arshift(x,n) Returns the bitwise arithmetic right-shift -->
 
[[bit.arshift]] ''returns the bitwise arithmetic right-shift''<br/><!-- GIDEROSMTD:bit.arshift(x,n) Returns the bitwise arithmetic right-shift -->

Latest revision as of 18:34, 17 March 2023

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

Description

THIS PLUGIN IS DEPRECATED SINCE GIDEROS 2022.1: use BITWISE OPERATORS instead

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