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

Method Read

src/cpp/web-ifc/parsing/IfcTokenStream.h:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 void SetTokenSource(const std::function<uint32_t(char *, size_t, size_t)> &requestData, bool fromStream = false);
40 void SetTokenSource(std::istream &requestData);
41 template <typename T> T Read()
42 {
43 if (!_cChunk->IsLoaded()) {
44 checkMemory();
45 _activeChunks++;
46 }
47 T v = _cChunk->Read<T>(_readPtr);
48 Forward(sizeof(T));
49 return v;
50 }
51 template <typename T> void Push(T input)
52 {
53 Push(&input,sizeof(T));

Callers

nothing calls this directly

Calls 1

IsLoadedMethod · 0.80

Tested by

no test coverage detected