W3cubDocs

/Haxe Flash

ByteArray

package flash.utils

implements IDataInput2, IDataOutput2

Available on flash

Constructor

new ()

Variables

read only bytesAvailable:UInt

endian:Endian

length:UInt

objectEncoding:UInt

position:UInt

@:require(flash11_4) shareable:Bool

Methods

@:require(flash11_4) atomicCompareAndSwapIntAt (byteIndex:Int, expectedValue:Int, newValue:Int):Int

@:require(flash11_4) atomicCompareAndSwapLength (expectedLength:Int, newLength:Int):Int

@:require(flash10) clear ():Void

compress (?algorithm:CompressionAlgorithm):Void

@:require(flash10) deflate ():Void

@:require(flash10) inflate ():Void

readBoolean ():Bool

readByte ():Int

@:value({ length : 0, offset : 0 }) readBytes (bytes:ByteArray, offset:UInt = 0, length:UInt = 0):Void

readDouble ():Float

readFloat ():Float

readInt ():Int

readMultiByte (length:UInt, charSet:String):String

readObject ():Dynamic

readShort ():Int

readUTF ():String

readUTFBytes (length:UInt):String

readUnsignedByte ():UInt

readUnsignedInt ():UInt

readUnsignedShort ():UInt

toString ():String

uncompress (?algorithm:CompressionAlgorithm):Void

writeBoolean (value:Bool):Void

writeByte (value:Int):Void

@:value({ length : 0, offset : 0 }) writeBytes (bytes:ByteArray, offset:UInt = 0, length:UInt = 0):Void

writeDouble (value:Float):Void

writeFloat (value:Float):Void

writeInt (value:Int):Void

writeMultiByte (value:String, charSet:String):Void

writeObject (object:Dynamic):Void

writeShort (value:Int):Void

writeUTF (value:String):Void

writeUTFBytes (value:String):Void

writeUnsignedInt (value:UInt):Void

Static variables

static defaultObjectEncoding:UInt

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/flash/utils/ByteArray.html