ByteStringer (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.hbase.util

Class ByteStringer

    • Method Detail

      • wrap

        public static ByteString wrap(byte[] array)
        Wraps a byte array in a ByteString without copying it.
        Parameters:
        array - an array object.
        Returns:
        ByteString based on runtime copy flag.
      • wrap

        public static ByteString wrap(byte[] array,
                                      int offset,
                                      int length)
        Wraps a byte array in a ByteString without copying it.
        Parameters:
        array - an array value.
        offset - an integer value.
        length - an integer value.
        Returns:
        a ByteString object with array based on offset and length value.
      • extract

        public static byte[] extract(ByteString buf)