public static long readUnsignedInt(ByteBuffer buffer, int index) {
        return buffer.getInt(index) & 0xffffffffL;
    }
Read an unsigned integer from the given position without modifying the buffers position

@param buffer the buffer to read from
@param index the index from which to read the integer
@return The integer read, as a long to avoid signedness
clients/src/main/java/org/apache/kafka/common/utils/ByteUtils.java