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

Method reget

src/dsql/DsqlBatch.cpp:959–974  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957}
958
959ULONG DsqlBatch::DataCache::reget(ULONG remains, UCHAR** buffer, ULONG alignment)
960{
961 ULONG a = remains % alignment;
962 if (a)
963 {
964 a = alignment - a;
965 remains += a;
966 }
967 fb_assert(remains < m_cache.getCount());
968
969 m_cache.removeCount(0, m_cache.getCount() - remains);
970 ULONG size = get(buffer);
971 size -= a;
972 *buffer += a;
973 return size;
974}
975
976void DsqlBatch::DataCache::remained(ULONG size, ULONG alignment)
977{

Callers 1

executeMethod · 0.80

Calls 3

getFunction · 0.50
getCountMethod · 0.45
removeCountMethod · 0.45

Tested by

no test coverage detected