@Override
	boolean insertRecord(int index, DBRecord record) throws IOException {

		if (keyCount == ((buffer.length() - HEADER_SIZE) / entrySize)) {
			return false;  // insufficient space for record storage
		}

		// Make room for new record
		shiftRecords(index, true);

		// Store new record
		int offset = getRecordOffset(index);
		buffer.putLong(offset, record.getKey());
		record.write(buffer, offset + KEY_SIZE);
		setKeyCount(keyCount + 1);

		return true;
	}
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/FixedRecNode.java