transferTo

open override fun transferTo(sink: ByteArraySink): Long(source)

Removes all bytes from this source, writes them to sink, and returns the total number of bytes written to sink. Return 0 if this source is exhausted.