size

abstract fun size(): Long

Returns the current size of entity to which this channel is connected.

Return

The current size, measured in bytes

Throws

If this channel is closed

IOException

If some other I/O error occurs