Constructor
Inherited Variables
Inherited Methods
Defined by BytesInput
Defined by Input
@:keepclose():Void
Close the input source.
Behaviour while reading after calling this method is unspecified.
@:keepreadAll(?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.
@:keepreadDouble():Float
Read a 64-bit double-precision floating point number.
Endianness is specified by the bigEndian
property.
@:keepreadFloat():Float
Read a 32-bit floating point number.
Endianness is specified by the bigEndian
property.
@:keepreadFullBytes(s:Bytes, pos:Int, len:Int):Void
Read len
bytes and write them into s
to the position specified by pos
.
Unlike readBytes
, this method tries to read the exact len
amount of bytes.
@:keepreadInt16():Int
Read a 16-bit signed integer.
Endianness is specified by the bigEndian
property.
@:keepreadInt24():Int
Read a 24-bit signed integer.
Endianness is specified by the bigEndian
property.
@:keepreadInt32():Int
Read a 32-bit signed integer.
Endianness is specified by the bigEndian
property.
@:keepreadLine():String
Read a line of text separated by CR and/or LF bytes.
The CR/LF characters are not included in the resulting string.
@:keepreadUInt16():Int
Read a 16-bit unsigned integer.
Endianness is specified by the bigEndian
property.
@:keepreadUInt24():Int
Read a 24-bit unsigned integer.
Endianness is specified by the bigEndian
property.