MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / find

Method find

src/common/classes/BatchCompletionState.h:166–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 ULONG reccount, detailedLimit;
165
166 ULONG find(ULONG recno) const
167 {
168 ULONG high = rare.getCount(), low = 0;
169 while (high > low)
170 {
171 ULONG med = (high + low) / 2;
172 if (recno > rare[med].first)
173 low = med + 1;
174 else
175 high = med;
176 }
177
178 return low;
179 }
180
181 void checkRange(unsigned pos)
182 {

Callers

nothing calls this directly

Calls 1

getCountMethod · 0.45

Tested by

no test coverage detected