MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / getNextBlock

Method getNextBlock

Source/ThirdParty/assimp/IOStreamBuffer.h:331–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329
330template <class T>
331AI_FORCE_INLINE bool IOStreamBuffer<T>::getNextBlock(std::vector<T> &buffer) {
332 // Return the last block-value if getNextLine was used before
333 if (0 != m_cachePos) {
334 buffer = std::vector<T>(m_cache.begin() + m_cachePos, m_cache.end());
335 m_cachePos = 0;
336 } else {
337 if (!readNextBlock()) {
338 return false;
339 }
340
341 buffer = std::vector<T>(m_cache.begin(), m_cache.end());
342 }
343
344 return true;
345}
346
347} // namespace Assimp
348

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected