Static methods

@:keepstaticalloc(length:Int):Bytes

@:has_untyped@:keepstaticfastGet(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.

@:keepstaticofData(b:BytesData):Bytes

@:has_untyped@:keepstaticofString(s:String):Bytes

Constructor

new(length:Int, b:BytesData)

Available on macro

Variables

@:keepread onlylength:Int

Methods

@:keepblit(pos:Int, src:Bytes, srcpos:Int, len:Int):Void

@:keepcompare(other:Bytes):Int

@:has_untyped@:keepfill(pos:Int, len:Int, value:Int):Void

@:has_untyped@:keepget(pos:Int):Int

@:has_untyped@:keepgetDouble(pos:Int):Float

Returns the IEEE double precision value at given position (in low endian encoding). Result is unspecified if reading outside of the bounds

@:has_untyped@:keepgetFloat(pos:Int):Float

Returns the IEEE single precision value at given position (in low endian encoding). Result is unspecified if reading outside of the bounds

@:keepgetInt32(pos:Int):Int

Returns the 32 bit integer at given position (in low endian encoding).

@:keepgetInt64(pos:Int):Int64

Returns the 64 bit integer at given position (in low endian encoding).

@:has_untyped@:keepgetString(pos:Int, len:Int):String

@:keepgetUInt16(pos:Int):Int

Returns the 16 bit unsigned integer at given position (in low endian encoding).

@:has_untyped@:keepset(pos:Int, v:Int):Void

@:has_untyped@:keepsetDouble(pos:Int, v:Float):Void

Store the IEEE double precision value at given position in low endian encoding. Result is unspecified if writing outside of the bounds.

@:has_untyped@:keepsetFloat(pos:Int, v:Float):Void

Store the IEEE single precision value at given position in low endian encoding. Result is unspecified if writing outside of the bounds.

@:keepsetInt32(pos:Int, v:Int):Void

Store the 32 bit integer at given position (in low endian encoding).

@:keepsetInt64(pos:Int, v:Int64):Void

Store the 64 bit integer at given position (in low endian encoding).

@:keepsetUInt16(pos:Int, v:Int):Void

Store the 16 bit unsigned integer at given position (in low endian encoding).

@:keepsub(pos:Int, len:Int):Bytes

@:keeptoHex():String