discord-jadx/app/src/main/java/c/f/d/g/j.java
2021-06-27 22:44:35 +02:00

34 lines
878 B
Java

package c.f.d.g;
import com.airbnb.lottie.parser.AnimatableValueParser;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/* compiled from: PooledByteStreams */
public class j {
public final int a = 16384;
public final a b;
public j(a aVar) {
AnimatableValueParser.j(true);
this.b = aVar;
}
public long a(InputStream inputStream, OutputStream outputStream) throws IOException {
byte[] bArr = this.b.get(this.a);
long j = 0;
while (true) {
try {
int read = inputStream.read(bArr, 0, this.a);
if (read == -1) {
return j;
}
outputStream.write(bArr, 0, read);
j += (long) read;
} finally {
this.b.release(bArr);
}
}
}
}