Difference between revisions of "Bit"

From GiderosMobile
Line 5: Line 5:
 
<translate>Provides bit based operations</translate>
 
<translate>Provides bit based operations</translate>
 
{|-
 
{|-
| style="width: 50%;"|
+
| style="width: 50%; vertical-align:top;"|
 
=== Methods ===
 
=== Methods ===
[[bit.arshift]] {{<translate>Returns the bitwise arithmetic right-shift</translate>}}<br/>
+
[[bit.arshift]] ''<translate>Returns the bitwise arithmetic right-shift</translate>''<br/>
[[bit.band]] {{<translate>Returns the bitwise and of its argument.</translate>}}<br/>
+
[[bit.band]] ''<translate>Returns the bitwise and of its argument.</translate>''<br/>
[[bit.bnot]] {{<translate>Returns the bitwise not of its argument.</translate>}}<br/>
+
[[bit.bnot]] ''<translate>Returns the bitwise not of its argument.</translate>''<br/>
[[bit.bor]] {{<translate>Returns the bitwise or of its argument.</translate>}}<br/>
+
[[bit.bor]] ''<translate>Returns the bitwise or of its argument.</translate>''<br/>
[[bit.bswap]] {{<translate>Swaps the bytes of its argument and returns it</translate>}}<br/>
+
[[bit.bswap]] ''<translate>Swaps the bytes of its argument and returns it</translate>''<br/>
[[bit.bxor]] {{<translate>Returns the bitwise xor of its argument.</translate>}}<br/>
+
[[bit.bxor]] ''<translate>Returns the bitwise xor of its argument.</translate>''<br/>
[[bit.lshift]] {{<translate>Returns the bitwise logical left-shift</translate>}}<br/>
+
[[bit.lshift]] ''<translate>Returns the bitwise logical left-shift</translate>''<br/>
[[bit.rol]] {{<translate>Returns the bitwise left rotation</translate>}}<br/>
+
[[bit.rol]] ''<translate>Returns the bitwise left rotation</translate>''<br/>
[[bit.ror]] {{<translate>Returns the bitwise right rotation</translate>}}<br/>
+
[[bit.ror]] ''<translate>Returns the bitwise right rotation</translate>''<br/>
[[bit.rshift]] {{<translate>Returns the bitwise logical right-shift</translate>}}<br/>
+
[[bit.rshift]] ''<translate>Returns the bitwise logical right-shift</translate>''<br/>
[[bit.tobit]] {{<translate>Normalizes a number to the numeric range for bit operations</translate>}}<br/>
+
[[bit.tobit]] ''<translate>Normalizes a number to the numeric range for bit operations</translate>''<br/>
[[bit.tohex]] {{<translate>Converts its first argument to a hex string.</translate>}}<br/>
+
[[bit.tohex]] ''<translate>Converts its first argument to a hex string.</translate>''<br/>
| style="width: 50%;"|
+
| style="width: 50%; vertical-align:top;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 14:30, 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