Difference between revisions of "Bit"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
<!-- GIDEROSOBJ:bit -->
 
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]]<br/>
 
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]]<br/>
 
'''<translate>Available since</translate>:''' Gideros 2013.09<br/>
 
'''<translate>Available since</translate>:''' Gideros 2013.09<br/>
Line 7: Line 8:
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== <translate>Methods</translate> ===
 
=== <translate>Methods</translate> ===
[[Special:MyLanguage/bit.arshift|bit.arshift]] ''<translate>Returns the bitwise arithmetic right-shift</translate>''<br/>
+
[[Special:MyLanguage/bit.arshift|bit.arshift]] ''<translate>Returns the bitwise arithmetic right-shift</translate>''<br/><!-- GIDEROSMTD:bit.arshift -->
[[Special:MyLanguage/bit.band|bit.band]] ''<translate>Returns the bitwise and of its argument.</translate>''<br/>
+
[[Special:MyLanguage/bit.band|bit.band]] ''<translate>Returns the bitwise and of its argument.</translate>''<br/><!-- GIDEROSMTD:bit.band -->
[[Special:MyLanguage/bit.bnot|bit.bnot]] ''<translate>Returns the bitwise not of its argument.</translate>''<br/>
+
[[Special:MyLanguage/bit.bnot|bit.bnot]] ''<translate>Returns the bitwise not of its argument.</translate>''<br/><!-- GIDEROSMTD:bit.bnot -->
[[Special:MyLanguage/bit.bor|bit.bor]] ''<translate>Returns the bitwise or of its argument.</translate>''<br/>
+
[[Special:MyLanguage/bit.bor|bit.bor]] ''<translate>Returns the bitwise or of its argument.</translate>''<br/><!-- GIDEROSMTD:bit.bor -->
[[Special:MyLanguage/bit.bswap|bit.bswap]] ''<translate>Swaps the bytes of its argument and returns it</translate>''<br/>
+
[[Special:MyLanguage/bit.bswap|bit.bswap]] ''<translate>Swaps the bytes of its argument and returns it</translate>''<br/><!-- GIDEROSMTD:bit.bswap -->
[[Special:MyLanguage/bit.bxor|bit.bxor]] ''<translate>Returns the bitwise xor of its argument.</translate>''<br/>
+
[[Special:MyLanguage/bit.bxor|bit.bxor]] ''<translate>Returns the bitwise xor of its argument.</translate>''<br/><!-- GIDEROSMTD:bit.bxor -->
[[Special:MyLanguage/bit.lshift|bit.lshift]] ''<translate>Returns the bitwise logical left-shift</translate>''<br/>
+
[[Special:MyLanguage/bit.lshift|bit.lshift]] ''<translate>Returns the bitwise logical left-shift</translate>''<br/><!-- GIDEROSMTD:bit.lshift -->
[[Special:MyLanguage/bit.rol|bit.rol]] ''<translate>Returns the bitwise left rotation</translate>''<br/>
+
[[Special:MyLanguage/bit.rol|bit.rol]] ''<translate>Returns the bitwise left rotation</translate>''<br/><!-- GIDEROSMTD:bit.rol -->
[[Special:MyLanguage/bit.ror|bit.ror]] ''<translate>Returns the bitwise right rotation</translate>''<br/>
+
[[Special:MyLanguage/bit.ror|bit.ror]] ''<translate>Returns the bitwise right rotation</translate>''<br/><!-- GIDEROSMTD:bit.ror -->
[[Special:MyLanguage/bit.rshift|bit.rshift]] ''<translate>Returns the bitwise logical right-shift</translate>''<br/>
+
[[Special:MyLanguage/bit.rshift|bit.rshift]] ''<translate>Returns the bitwise logical right-shift</translate>''<br/><!-- GIDEROSMTD:bit.rshift -->
[[Special:MyLanguage/bit.tobit|bit.tobit]] ''<translate>Normalizes a number to the numeric range for bit operations</translate>''<br/>
+
[[Special:MyLanguage/bit.tobit|bit.tobit]] ''<translate>Normalizes a number to the numeric range for bit operations</translate>''<br/><!-- GIDEROSMTD:bit.tobit -->
[[Special:MyLanguage/bit.tohex|bit.tohex]] ''<translate>Converts its first argument to a hex string.</translate>''<br/>
+
[[Special:MyLanguage/bit.tohex|bit.tohex]] ''<translate>Converts its first argument to a hex string.</translate>''<br/><!-- GIDEROSMTD:bit.tohex -->
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== <translate>Events</translate> ===
 
=== <translate>Events</translate> ===
 
=== <translate>Constants</translate> ===
 
=== <translate>Constants</translate> ===
 
|}
 
|}

Revision as of 14:57, 31 August 2018

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.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