BytesBuffer

package haxe.io

Available on all platforms

Constructor

new()

Variables

read onlylength:Int

The length of the buffer in bytes.

Methods

add(src:Bytes):Void

addByte(byte:Int):Void

addBytes(src:Bytes, pos:Int, len:Int):Void

addDouble(v:Float):Void

addFloat(v:Float):Void

addInt32(v:Int):Void

addInt64(v:Int64):Void

addString(v:String, ?encoding:Encoding):Void

getBytes():Bytes

Returns either a copy or a reference of the current bytes. Once called, the buffer should no longer be used.