- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
22 lines
668 B
Java
22 lines
668 B
Java
package com.ironsource;
|
|
|
|
import java.io.ByteArrayOutputStream;
|
|
import java.io.IOException;
|
|
import java.io.InputStream;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class zt {
|
|
public static byte[] a(InputStream inputStream) throws IOException {
|
|
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
|
byte[] bArr = new byte[8192];
|
|
while (true) {
|
|
int read = inputStream.read(bArr, 0, 8192);
|
|
if (read == -1) {
|
|
byteArrayOutputStream.flush();
|
|
return byteArrayOutputStream.toByteArray();
|
|
}
|
|
byteArrayOutputStream.write(bArr, 0, read);
|
|
}
|
|
}
|
|
}
|