position

fun position(source: Source): Long

Returns the position of source in the file. The argument source must be either a source produced by this file handle, or a BufferedSource that directly wraps such a source. If the parameter is a BufferedSource, it adjusts for buffered bytes.


fun position(sink: Sink): Long

Returns the position of sink in the file. The argument sink must be either a sink produced by this file handle, or a BufferedSink that directly wraps such a sink. If the parameter is a BufferedSink, it adjusts for buffered bytes.