MCPcopy Create free account
hub / github.com/ThatOpen/engine_web-ifc / checkMemory

Method checkMemory

src/cpp/web-ifc/parsing/IfcTokenStream.cpp:102–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 }
101
102 void IfcTokenStream::checkMemory()
103 {
104 if (_maxChunks != 0 && _activeChunks == _maxChunks){
105 for (uint32_t x = 0; x < _chunks.size(); x++)
106 {
107 if (_chunks[x].IsLoaded())
108 {
109 if (_chunks[x].Clear())
110 {
111 _activeChunks--;
112 break;
113 }
114 }
115 }
116 }
117 }
118
119 void IfcTokenStream::Push(void *v, const size_t size)
120 {

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
IsLoadedMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected