24 lines
616 B
Java
24 lines
616 B
Java
|
package org.bouncycastle.crypto.tls;
|
||
|
|
||
|
import java.io.IOException;
|
||
|
import java.io.OutputStream;
|
||
|
|
||
|
/* loaded from: classes6.dex */
|
||
|
public class ByteQueueOutputStream extends OutputStream {
|
||
|
private ByteQueue buffer = new ByteQueue();
|
||
|
|
||
|
@Override // java.io.OutputStream
|
||
|
public void write(byte[] bArr, int i, int i2) throws IOException {
|
||
|
this.buffer.addData(bArr, i, i2);
|
||
|
}
|
||
|
|
||
|
@Override // java.io.OutputStream
|
||
|
public void write(int i) throws IOException {
|
||
|
this.buffer.addData(new byte[]{(byte) i}, 0, 1);
|
||
|
}
|
||
|
|
||
|
public ByteQueue getBuffer() {
|
||
|
return this.buffer;
|
||
|
}
|
||
|
}
|