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

Method getElement

src/common/classes/alloc.cpp:1606–1615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1604 { }
1605
1606 static MemBlock* getElement(MemBlock** from)
1607 {
1608 MemBlock* rc = SemiDoubleLink::pop(*from);
1609 if (rc)
1610 {
1611 MemMediumHunk* hunk = rc->getHunk();
1612 hunk->incrUsage();
1613 }
1614 return rc;
1615 }
1616
1617 void putElement(MemBlock** to, MemBlock* block);
1618

Callers

nothing calls this directly

Calls 3

getHunkMethod · 0.80
popFunction · 0.70
incrUsageMethod · 0.45

Tested by

no test coverage detected