Static methods
staticalloc(length:Int):Bytes
Returns a new Bytes
instance with the given length
. The values of the
bytes are not initialized and may not be zero.
Variables
Methods
getString(pos:Int, len:Int, ?encoding:Encoding):String
Available on clay
Returns the len
-bytes long string stored at the given position pos
,
interpreted with the given encoding
(UTF-8 by default).
blit(pos:Int, src:Bytes, srcpos:Int, len:Int):Void
Available with gif plugin, tilemap plugin
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. |