private void shiftRecords(int index, boolean rightShift) {

		// No movement needed for appended record
		if (index == keyCount)
			return;

		// Determine block to be moved
		int start = getRecordOffset(index);
		int end = getRecordOffset(keyCount);
		int len = end - start;

		// Move record data
		int offset = start + (rightShift ? entrySize : -entrySize);
		buffer.move(start, offset, len);
	}
Shift all records by one starting with index to the end.
@param index the smaller key index (0 &lt;= index1)
@param rightShift shift right by one record if true, else shift left by
one record.
Ghidra/Framework/DB/src/main/java/db/FixedKeyFixedRecNode.java