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

Method SkipLine

code/AssetLib/Ply/PlyParser.cpp:364–378  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

362
363// ------------------------------------------------------------------------------------------------
364bool PLY::DOM::SkipLine(std::vector<char> &buffer) {
365 const char *pCur = buffer.empty() ? nullptr : (char *)&buffer[0];
366 const char *end = pCur + buffer.size();
367 bool ret = false;
368 if (pCur) {
369 const char *szCur = pCur;
370 ret = Assimp::SkipLine(pCur, &pCur, end);
371
372 uintptr_t iDiff = (uintptr_t)pCur - (uintptr_t)szCur;
373 buffer.erase(buffer.begin(), buffer.begin() + iDiff);
374 return ret;
375 }
376
377 return ret;
378}
379
380// ------------------------------------------------------------------------------------------------
381bool PLY::DOM::TokenMatch(std::vector<char> &buffer, const char *token, unsigned int len) {

Callers

nothing calls this directly

Calls 5

eraseMethod · 0.80
SkipLineFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected