private int allocateIndex(DataBuffer buffer) {
		dataBaseOffset = DATA_BASE_OFFSET_INDEXED;
		dataSpace = buffer.length() - dataBaseOffset;
		int indexCount = ((size - 1) / dataSpace) + 1;
		indexesPerBuffer = (buffer.length() - INDEX_BASE_OFFSET) / ID_SIZE;
		dataBufferIdTable = new int[indexCount];
		return indexCount;
	}
Allocate in-memory index and compute buffer parameters for index mode.
@param buffer sample buffer for computing data and index parameters.
@return number of index entries
Ghidra/Framework/DB/src/main/java/db/ChainedBuffer.java