mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 09:57:16 +01:00
27 lines
791 B
Java
27 lines
791 B
Java
package com.google.protobuf;
|
|
|
|
import java.io.IOException;
|
|
import java.nio.ByteBuffer;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes8.dex */
|
|
public final class UnsafeByteOperations {
|
|
private UnsafeByteOperations() {
|
|
}
|
|
|
|
public static ByteString unsafeWrap(byte[] bArr) {
|
|
return ByteString.wrap(bArr);
|
|
}
|
|
|
|
public static void unsafeWriteTo(ByteString byteString, ByteOutput byteOutput) throws IOException {
|
|
byteString.writeTo(byteOutput);
|
|
}
|
|
|
|
public static ByteString unsafeWrap(byte[] bArr, int i, int i2) {
|
|
return ByteString.wrap(bArr, i, i2);
|
|
}
|
|
|
|
public static ByteString unsafeWrap(ByteBuffer byteBuffer) {
|
|
return ByteString.wrap(byteBuffer);
|
|
}
|
|
}
|