Memory

extern class flash.MemoryAvailable in flashNote: the endian property of the selected ByteArray does not affect these Memory functions. They behave as if it is set to Endian.LITTLE_ENDIAN. static inline function getByte( addr : Int ) : Int static inline function getDouble( addr : Int ) : Float static inline function getFloat( addr : Int ) : Float static inline function getI32( addr : Int ) : Int static inline function getUI16( addr : Int ) : Int static inline function select( b : ByteArray ) : VoidNote: the length of the ByteArray passed in must be > 0x3FF
Select is rather time-consuming operation, selecting different memory blocks in cycles may lead to a performance loss.
static inline function setByte( addr : Int, v : Int ) : VoidNote: if v > 0xFF then just the lower byte is stored at addr static inline function setDouble( addr : Int, v : Float ) : Void static inline function setFloat( addr : Int, v : Float ) : Void static inline function setI16( addr : Int, v : Int ) : Void static inline function setI32( addr : Int, v : Int ) : Void static inline function signExtend1( v : Int ) : Int static inline function signExtend16( v : Int ) : Int static inline function signExtend8( v : Int ) : Int
version #13201, modified 2012-04-12 22:27:53 by api
0 comment