@:value({ available : 0, pos : 0 })new(i:Input, buf:Bytes, pos:Int = 0, available:Int = 0)
available:Int
buf:Bytes
i:Input
pos:Int
refill():Void
read onlybigEndian: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
Close the input source.
Behaviour while reading after calling this method is unspecified.
read(nbytes:Int):Bytes
Read and return nbytes bytes.
nbytes
readFullBytes(s:Bytes, pos:Int, len:Int):Void
Read len bytes and write them into s to the position specified by pos.
len
s
pos
Unlike readBytes, this method tries to read the exact len amount of bytes.
readBytes
readInt16():Int
Read a 16-bit signed integer.
Endianness is specified by the bigEndian property.
bigEndian
readInt32():Int
Read a 32-bit signed integer.
readLine():String
Read a line of text separated by CR and/or LF bytes.
The CR/LF characters are not included in the resulting string.
readString(len:Int, ?encoding:Encoding):String
Read and len bytes as a string.
readUInt16():Int
Read a 16-bit unsigned integer.