public static String utf8(ByteBuffer buffer) {
        return utf8(buffer, buffer.remaining());
    }
Read a UTF8 string from the current position till the end of a byte buffer. The position of the byte buffer is
not affected by this method.

@param buffer The buffer to read from
@return The UTF8 string
clients/src/main/java/org/apache/kafka/common/utils/Utils.java