public void put(int index, long value) {
        if (value == 0) {
            remove(index);
            return;
        }
        
        if (index >= longs.length) {
            adjustArray(Math.max(index+1,longs.length*2));
        }
        longs[index] = value;
        if (index > lastNonZeroIndex) {
            lastNonZeroIndex = index;
        }
    }
Puts the given long value in the long array at
the given index
@param index Index into the array.
@param value value to store
@throws IndexOutOfBoundsException if the index is negative
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/LongArray.java