MCPcopy Create free account
hub / github.com/OGRECave/ogre / readChunkEnd

Method readChunkEnd

OgreMain/src/OgreStreamSerialiser.cpp:238–251  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

236 }
237 //---------------------------------------------------------------------
238 void StreamSerialiser::readChunkEnd(uint32 id)
239 {
240 Chunk* c = popChunk(id);
241
242 OgreAssert(mStream, "Stream is null");
243
244 // skip to the end of the chunk if we were not there already
245 // this lets us quite reading a chunk anywhere and have the read marker
246 // automatically skip to the next one
247 if (mStream->tell() < (c->offset + CHUNK_HEADER_SIZE + c->length))
248 mStream->seek(c->offset + CHUNK_HEADER_SIZE + c->length);
249
250 OGRE_DELETE c;
251 }
252 //---------------------------------------------------------------------
253 bool StreamSerialiser::isEndOfChunk(uint32 id)
254 {

Callers 14

HalfFloatGridSourceMethod · 0.80
loadMethod · 0.80
prepareMethod · 0.80
loadMethod · 0.80
loadMethod · 0.80
prepareImplMethod · 0.80
loadMethod · 0.80
readLodDataMethod · 0.80
readLayerDeclarationMethod · 0.80
readLayerInstanceListMethod · 0.80
prepareMethod · 0.80
loadGroupDefinitionMethod · 0.80

Calls 2

tellMethod · 0.45
seekMethod · 0.45

Tested by 1

TESTFunction · 0.64