copyStream

inline fun copyStream(size: Long, inputStream: InputStream, os: OutputStream, bufferSize: Int = 4096, progress: (Long) -> Unit = {})
inline fun InputStream.copyStream(size: Long, os: OutputStream, bufferSize: Int = 4096, progress: (Long) -> Unit = {})