size

open fun size(): Long

Returns the size of the data source underlying this channel in bytes.

Throws

if this channel is closed.

if an I/O error occurs.