klyn.io.ConsoleInputStream.readBytes
method
public readBytes(length as Long) as Byte[]
Description

Reads one available prefix into a new array; does not wait to fill it.

Parameters
ParameterDescription
lengthMaximum byte count; non-positive values return an empty array.
Returns

At most length bytes, or an empty array at EOF.

Throws
  • IOException for a native input failure.
Example

prefix = input.readBytes(4096l)