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. |
compare(other:Bytes):Int
Returns 0
if the bytes of this
instance and the bytes of other
are
identical.
Returns a negative value if the length
of this
instance is less than
the length
of other
, or a positive value if the length
of this
instance is greater than the length
of other
.
In case of equal length
s, returns a negative value if the first different
value in other
is greater than the corresponding value in this
instance; otherwise returns a positive value.
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).