com.google.protobuf.ByteStringAccess Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-proto-backplane-grpc Show documentation
Show all versions of deephaven-proto-backplane-grpc Show documentation
The Deephaven proto-backplane-grpc
The newest version!
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package com.google.protobuf;
import java.nio.ByteBuffer;
public class ByteStringAccess {
/**
* Wraps the given bytes into a {@link ByteString}.
*/
public static ByteString wrap(ByteBuffer buffer) {
return ByteString.wrap(buffer);
}
/**
* Wraps the given bytes into a {@link ByteString}.
*/
public static ByteString wrap(byte[] bytes) {
return ByteString.wrap(bytes);
}
/**
* Wraps the given bytes into a {@link ByteString}.
*/
public static ByteString wrap(byte[] bytes, int offset, int length) {
return ByteString.wrap(bytes, offset, length);
}
}