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

Method getCount

src/jrd/recsrc/BufferedStream.cpp:378–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378FB_UINT64 BufferedStream::getCount(thread_db* tdbb) const
379{
380 Request* const request = tdbb->getRequest();
381 Impure* const impure = request->getImpure<Impure>(m_impure);
382
383 // If we haven't fetched and cached the underlying stream completely, do it now
384 if (impure->irsb_flags & irsb_mustread)
385 {
386 while (this->getRecord(tdbb))
387 ; // no-op
388 fb_assert(!(impure->irsb_flags & irsb_mustread));
389 }
390
391 return impure->irsb_buffer ? impure->irsb_buffer->getCount() : 0;
392}

Callers 15

internalGetRecordMethod · 0.45
BaseAggWinStreamMethod · 0.45
internalOpenMethod · 0.45
processMethod · 0.45
BufferedStreamMethod · 0.45
internalGetRecordMethod · 0.45
internalOpenMethod · 0.45
internalGetRecordMethod · 0.45
cleanupLevelMethod · 0.45
ProcedureScanMethod · 0.45
internalOpenMethod · 0.45
closeMethod · 0.45

Calls 2

getRequestMethod · 0.45
getRecordMethod · 0.45

Tested by

no test coverage detected