Difference between revisions of "Bit"

From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2013.09<br/> === Description === Provides bit based operations{|- | style="width: 50%;"| === Methods...")
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Supported platforms:''' <br/>
+
'''Supported platforms:''' android, ios, mac, pc<br/>
 
'''Available since:''' Gideros 2013.09<br/>
 
'''Available since:''' Gideros 2013.09<br/>
 
=== Description ===
 
=== Description ===
Provides bit based operations{|-
+
Provides bit based operations
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
{|-
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===
 +
[[bit.arshift]] - Returns the bitwise arithmetic right-shift<br/>
 +
[[bit.band]] - Returns the bitwise and of its argument.<br/>
 +
[[bit.bnot]] - Returns the bitwise not of its argument.<br/>
 +
[[bit.bor]] - Returns the bitwise or of its argument.<br/>
 +
[[bit.bswap]] - Swaps the bytes of its argument and returns it<br/>
 +
[[bit.bxor]] - Returns the bitwise xor of its argument.<br/>
 +
[[bit.lshift]] - Returns the bitwise logical left-shift<br/>
 +
[[bit.rol]] - Returns the bitwise left rotation<br/>
 +
[[bit.ror]] - Returns the bitwise right rotation<br/>
 +
[[bit.rshift]] - Returns the bitwise logical right-shift<br/>
 +
[[bit.tobit]] - Normalizes a number to the numeric range for bit operations<br/>
 +
[[bit.tohex]] - Converts its first argument to a hex string.<br/>
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 09:56, 23 August 2018

Supported platforms: android, ios, mac, pc
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