---------------------------------------------------------------------
| 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 | { |