klyn.io.FileOutputStream.writeBytes
method
public writeBytes(notnull value as Byte[], offset as Long, length as Long = -1l) as Void
Description

Writes a byte range directly from a reusable buffer without slicing it.

Parameters
ParameterDescription
valueSource byte buffer, never retained or modified.
offsetFirst byte in the buffer.
lengthByte count; -1 writes the remaining buffer.
Throws
  • IndexException for an invalid source range.
  • IOException if the stream is closed or writing fails.
Example

stream.writeBytes(buffer, 0l, count)