TBitArray::FindAndSetFirstZeroBit

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