| Package | calista.utils |
| Class | public class Base8 |
| Inheritance | Base8 Object |
Example :
import calista.utils.Base8 ;
var source:String = "hello world with a base 8 algorithm" ;
var encode:String = Base8.encode( source ) ;
trace("encode : " + encode) ;
var decode:String = Base8.decode( encode ) ;
trace("decode : " + decode) ;
// encode : 68656c6c6f20776f726c64207769746820612062617365203820616c676f726974686d
// decode : hello world with a base 8 algorithm
| Method | Defined By | ||
|---|---|---|---|
decode(source:String):String [static]
Decodes a base8 string. | Base8 | ||
encode(source:String):String [static]
Encodes a base8 string. | Base8 | ||
| decode | () | method |
public static function decode(source:String):StringDecodes a base8 string.
Example :
import calista.utils.Base8 ;
var decode:String = Base8.decode( "68656c6c6f20776f726c64207769746820612062617365203820616c676f726974686d" ) ;
trace("decode : " + decode) ; // decode : "hello world with a base 8 algorithm"
Parameters
source:String |
String |
| encode | () | method |
public static function encode(source:String):StringEncodes a base8 string.
Example :
import calista.utils.Base8 ;
var encode:String = Base8.encode( "hello world with a base 8 algorithm" ) ;
trace("encode : " + encode) ; // encode : 68656c6c6f20776f726c64207769746820612062617365203820616c676f726974686d
Parameters
source:String |
String |