write

abstract fun write(bytes: ByteArray, offset: Int, length: Int)

Takes all length bytes of bytes from offset at the current position, and moves past them.