MCPcopy Create free account
hub / github.com/assimp/assimp / Read

Function Read

code/AssetLib/Assbin/AssbinLoader.cpp:107–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105// -----------------------------------------------------------------------------------
106template <typename T>
107T Read(IOStream *stream) {
108 T t;
109 size_t res = stream->Read(&t, sizeof(T), 1);
110 if (res != 1) {
111 throw DeadlyImportError("Unexpected EOF");
112 }
113 return t;
114}
115
116// -----------------------------------------------------------------------------------
117template <>

Callers 3

ReadMethod · 0.50
ReadValueFunction · 0.50
ReadMemberFunction · 0.50

Calls 2

DeadlyImportErrorFunction · 0.85
ReadMethod · 0.45

Tested by

no test coverage detected