Package | com.adobe.utils |
Class | public class IntUtil |
Method | Defined by | ||
---|---|---|---|
rol(x:int, n:int):int
[static]
Rotates x left n bits
| IntUtil | ||
ror(x:int, n:int):uint
[static]
Rotates x right n bits
| IntUtil | ||
toHex(n:int, bigEndian:Boolean = false):String
[static]
Outputs the hex value of a int, allowing the developer to specify
the endinaness in the process.
| IntUtil |
rol | () | method |
public static function rol(x:int, n:int):int
Rotates x left n bits
Parametersx:int |
|
n:int |
int |
ror | () | method |
public static function ror(x:int, n:int):uint
Rotates x right n bits
Parametersx:int |
|
n:int |
uint |
toHex | () | method |
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.
Parametersn:int — The int value to output as hex
|
|
bigEndian:Boolean (default = false ) — Flag to output the int as big or little endian
|
String — A string of length 8 corresponding to the
hex representation of n ( minus the leading "0x" )
|