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

Method remained

src/dsql/DsqlBatch.cpp:976–995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

974}
975
976void DsqlBatch::DataCache::remained(ULONG size, ULONG alignment)
977{
978 if (size > alignment)
979 {
980 size -= alignment;
981 alignment = 0;
982 }
983 else
984 {
985 alignment -= size;
986 size = 0;
987 }
988
989 if (!size)
990 m_cache.clear();
991 else
992 m_cache.removeCount(0, m_cache.getCount() - size);
993
994 m_shift = alignment;
995}
996
997ULONG DsqlBatch::DataCache::getSize() const
998{

Callers 1

executeMethod · 0.80

Calls 3

clearMethod · 0.45
removeCountMethod · 0.45
getCountMethod · 0.45

Tested by

no test coverage detected