copyStreams

fun copyStreams(input: InputStream, output: OutputStream, bufferSize: Int, onChunk: (Long) -> Unit): Long