IntBase provides a common Integer API.
public function IntBase()
IntBase Static Constructor
public static function compare(alpha:int, beta:int):int
Parameters
Returns
public static function equalTo(alpha:int, beta:int):Boolean
Parameters
Returns
public static function greaterThan(alpha:int, beta:int):Boolean
Parameters
Returns
public static function lessThan(alpha:int, beta:int):Boolean
Parameters
Returns
public static function rol(x:int, n:int):int
Rotates x
left n
bits
Parameters
Returns
public static function ror(x:int, n:int):uint
Rotates x
right n
bits
Parameters
Returns
public static function toHex(n:int, bigEndian:Boolean = false):String
Outputs the hex value of a int, allowing the developer to specify
the endinaness in the process. Hex output is lowercase.
Parameters
| n:int — The int value to output as hex
|
|
| bigEndian:Boolean (default = false ) — Flag to output the int as big or little endian
|
Returns
| String — A string of length 8 corresponding to the hex representation of n ( minus the leading "0x" )
|
public static const HEX_CHARACTERS:String = "0123456789abcdef"
String for quick lookup of a hex character based on index
Copyright © 2008-2012 jason m horwitz, Sekati LLC. All Rights Reserved.