class Bytes
package haxe.io
Static methods
Variables
Methods
blit(pos:Int, src:Bytes, srcpos:Int, len:Int):Void
Copies len
bytes from src
into this instance.
Parameters:
pos | Zero-based location in |
---|---|
src | Source |
srcpos | Zero-based location at |
len | Number of bytes to be copied. |
getFloat(pos:Int):Float
Returns the IEEE single-precision value at the given position pos
(in
little-endian encoding). Result is unspecified if pos
is outside the
bounds.
getString(pos:Int, len:Int, ?encoding:Encoding):String
Returns the len
-bytes long string stored at the given position pos
,
interpreted with the given encoding
(UTF-8 by default).
setFloat(pos:Int, v:Float):Void
Stores the given IEEE single-precision value v
at the given position
pos
in little-endian encoding. Result is unspecified if writing outside
of bounds.