Class ByteStringAccess

java.lang.Object
com.google.protobuf.ByteStringAccess

public class ByteStringAccess
extends Object
  • Constructor Summary

    Constructors
    Constructor Description
    ByteStringAccess()  
  • Method Summary

    Modifier and Type Method Description
    static com.google.protobuf.ByteString wrap​(byte[] bytes)
    Wraps the given bytes into a ByteString.
    static com.google.protobuf.ByteString wrap​(byte[] bytes, int offset, int length)
    Wraps the given bytes into a ByteString.
    static com.google.protobuf.ByteString wrap​(ByteBuffer buffer)
    Wraps the given bytes into a ByteString.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ByteStringAccess

      public ByteStringAccess()
  • Method Details

    • wrap

      public static com.google.protobuf.ByteString wrap​(ByteBuffer buffer)
      Wraps the given bytes into a ByteString.
    • wrap

      public static com.google.protobuf.ByteString wrap​(byte[] bytes)
      Wraps the given bytes into a ByteString.
    • wrap

      public static com.google.protobuf.ByteString wrap​(byte[] bytes, int offset, int length)
      Wraps the given bytes into a ByteString.