Interface StringData

    • Method Detail

      • toBytes

        byte[] toBytes()
        Converts this StringData object to a UTF-8 byte array.

        Note: The returned byte array may be reused.

      • fromBytes

        static StringData fromBytes​(byte[] bytes)
        Creates an instance of StringData from the given UTF-8 byte array.
      • fromBytes

        static StringData fromBytes​(byte[] bytes,
                                    int offset,
                                    int numBytes)
        Creates an instance of StringData from the given UTF-8 byte array with offset and number of bytes.