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

Method ReadString

code/AssetLib/B3D/B3DImporter.cpp:212–225  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

210
211// ------------------------------------------------------------------------------------------------
212string B3DImporter::ReadString() {
213 if (_pos > _buf.size()) {
214 Fail("EOF");
215 }
216 string str;
217 while (_pos < _buf.size()) {
218 char c = (char)ReadByte();
219 if (!c) {
220 return str;
221 }
222 str += c;
223 }
224 return string();
225}
226
227// ------------------------------------------------------------------------------------------------
228string B3DImporter::ReadChunk() {

Callers 1

GZipStream_WriteReadMethod · 0.45

Calls 3

ReadByteFunction · 0.85
FailFunction · 0.50
sizeMethod · 0.45

Tested by 1

GZipStream_WriteReadMethod · 0.36