TBitArray::FindAndSetLastZeroBit

Finds the last occurrence of a zero bit in the array and sets it to one, returning the bit index.