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

Method MoveTo

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

Source from the content-addressed store, hash-verified

86 }
87
88 void IfcTokenStream::MoveTo(const size_t pos)
89 {
90 for (size_t i=_chunks.size()-1; i >=0; i--)
91 {
92 if (_chunks[i].GetTokenRef() <= pos)
93 {
94 _currentChunk = i;
95 _cChunk = &_chunks[_currentChunk];
96 _readPtr = pos - _cChunk->GetTokenRef();
97 break;
98 }
99 }
100 }
101
102 void IfcTokenStream::checkMemory()
103 {

Callers 9

SaveFileMethod · 0.80
MoveToLineArgumentMethod · 0.80
GetIntArgumentMethod · 0.80
GetRefArgumentMethod · 0.80
GetDoubleArgumentMethod · 0.80
GetTokenTypeMethod · 0.80
GetNoLineArgumentsMethod · 0.80
MoveToArgumentOffsetMethod · 0.80

Calls 2

sizeMethod · 0.80
GetTokenRefMethod · 0.80

Tested by

no test coverage detected