- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
27 lines
695 B
Java
27 lines
695 B
Java
package com.google.protobuf;
|
|
|
|
import java.io.IOException;
|
|
import java.nio.ByteBuffer;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class UnsafeByteOperations {
|
|
private UnsafeByteOperations() {
|
|
}
|
|
|
|
public static ByteString unsafeWrap(byte[] bArr) {
|
|
return ByteString.wrap(bArr);
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
public static void unsafeWriteTo(ByteString byteString, ByteOutput byteOutput) throws IOException {
|
|
byteString.writeTo(byteOutput);
|
|
}
|
|
}
|