klyn.io.ConsoleOutputStream.writeFrom
method
public writeFrom(notnull buffer as Byte[], offset as Long = 0l, length as Long = -1l) as Void
Description

Writes an existing byte-array range exactly, without copying it first. A zero-byte request performs no native output operation.

Parameters
ParameterDescription
bufferSource byte array, never null.
offsetFirst source index.
lengthByte count; -1 selects the remainder of the buffer.
Throws
  • IndexException for an invalid source range.
  • NullException for a runtime-null buffer; static null is rejected.
  • IOException if the selected output cannot accept the full range.
Example

output.writeFrom(buffer, 0l, count)