public static void writeUnsignedInt(ByteBuffer buffer, int index, long value) {
        buffer.putInt(index, (int) (value & 0xffffffffL));
    }
Write the given long value as a 4 byte unsigned integer. Overflow is ignored.

@param buffer The buffer to write to
@param index The position in the buffer at which to begin writing
@param value The value to write
clients/src/main/java/org/apache/kafka/common/utils/ByteUtils.java