isWritable

open fun isWritable(): Boolean

Checks whether the descriptor can be written.

As descriptors don't have properties, like characteristics, this depends on the descriptor specification and permissions. Some descriptors are always read-only. When unknown, it is assumed that the descriptor is writable, as the write operation will fail if not.