Available with tilemap plugin
new(b:Bytes, ?pos:Int, ?len:Int)
bigEndian:Bool
Endianness (word byte order) used when reading numbers.
If true, big-endian is used, otherwise little-endian is used.
true
little-endian
close():Void
Available on clay native
Close the input source.
Behaviour while reading after calling this method is unspecified.
readAll(?bufsize:Int):Bytes
Read and return all available data.
The bufsize optional argument specifies the size of chunks by which data is read. Its default value is target-specific.
bufsize
read(nbytes:Int):Bytes
Read and return nbytes bytes.
nbytes
readUntil(end:Int):String
Read a string until a character code specified by end is occurred.
end
The final character is not included in the resulting string.
readUInt16():Int
Read a 16-bit unsigned integer.
Endianness is specified by the bigEndian property.
bigEndian
readInt32():Int
Read a 32-bit signed integer.