private int getOffsetIndex(int offset) {

		int min = 0;
		int max = keyCount - 1;

		while (min <= max) {
			int i = (min + max) / 2;
			int keyOff = getKeyOffset(i);
			if (keyOff == offset) {
				return i;
			}
			else if (keyOff < offset) {
				max = i - 1;
			}
			else {
				min = i + 1;
			}
		}
		return min;
	}
Perform a binary search across the stored key offsets to find the
key index which corresponds to the specified key offset.  This facilitates
finding the key which utilizes the buffer storage at the specified 
offset.
@return key index.
Ghidra/Framework/DB/src/main/java/db/VarKeyInteriorNode.java