class haxe.io.Bytes

Available on all platforms

Class Fields

static function alloc(length:Int):Bytes

static function fastGet(b:BytesData, pos:Int):Int

Read the most efficiently possible the n-th byte of the data. Behavior when reading outside of the available data is unspecified.

static function ofData(b:BytesData):Bytes

static function ofString(s:String):Bytes

Instance Fields

function blit(pos:Int, src:Bytes, srcpos:Int, len:Int):Void

function compare(other:Bytes):Int

function fill(pos:Int, len:Int, value:Int):Void

function get(pos:Int):Int

function getData():BytesData

function getDouble(pos:Int):Float

function getFloat(pos:Int):Float

function getString(pos:Int, len:Int):String

function readString(pos:Int, len:Int):String

function set(pos:Int, v:Int):Void

function setDouble(pos:Int, v:Float):Void

function setFloat(pos:Int, v:Float):Void

function sub(pos:Int, len:Int):Bytes

function toHex():String

function toString():String