mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-15 02:17:18 +01:00
25 lines
740 B
Java
25 lines
740 B
Java
package com.fasterxml.jackson.databind.util;
|
|
|
|
import java.io.IOException;
|
|
import java.io.OutputStream;
|
|
import java.nio.ByteBuffer;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.dex */
|
|
public class ByteBufferBackedOutputStream extends OutputStream {
|
|
protected final ByteBuffer _b;
|
|
|
|
public ByteBufferBackedOutputStream(ByteBuffer byteBuffer) {
|
|
this._b = byteBuffer;
|
|
}
|
|
|
|
@Override // java.io.OutputStream
|
|
public void write(int i) throws IOException {
|
|
this._b.put((byte) i);
|
|
}
|
|
|
|
@Override // java.io.OutputStream
|
|
public void write(byte[] bArr, int i, int i2) throws IOException {
|
|
this._b.put(bArr, i, i2);
|
|
}
|
|
}
|