copy

fun Source.copy(): Source(source)

Deprecated

Use peek() or buffer.copy() instead, depending on your use case.

Replace with

import kotlinx.io.Source
peek()

Returns a copy of the current buffer attached to this Source.