public function decode(encoded:String):void
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Decodes a Base64 encoded String and adds the result to an internal
buffer. Strings must be in ASCII format.
Subsequent calls to this method add on to the internal
buffer. After all data have been encoded, call toByteArray()
to obtain a decoded flash.utils.ByteArray
.
Parameters
| encoded:String — The Base64 encoded String to decode.
|
public function reset():void
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Clears all buffers and resets the decoder to its initial state.
public function toByteArray():ByteArray
Language Version : | ActionScript 3.0 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Returns the current buffer as a decoded flash.utils.ByteArray
.
Note that calling this method also clears the buffer and resets the
decoder to its initial state.
Returns | ByteArray — The decoded flash.utils.ByteArray .
|