- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
23 lines
660 B
Java
23 lines
660 B
Java
package kotlin.io;
|
|
|
|
import java.io.InputStream;
|
|
import java.io.OutputStream;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public abstract class ByteStreamsKt {
|
|
public static final long copyTo(InputStream inputStream, OutputStream out, int i) {
|
|
Intrinsics.checkNotNullParameter(inputStream, "<this>");
|
|
Intrinsics.checkNotNullParameter(out, "out");
|
|
byte[] bArr = new byte[i];
|
|
int read = inputStream.read(bArr);
|
|
long j = 0;
|
|
while (read >= 0) {
|
|
out.write(bArr, 0, read);
|
|
j += read;
|
|
read = inputStream.read(bArr);
|
|
}
|
|
return j;
|
|
}
|
|
}
|