MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / closeFile

Method closeFile

Engine/source/core/util/zip/zipObject.cpp:164–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void ZipObject::closeFile(StreamObject *stream)
165{
166 if(mZipArchive == NULL)
167 return;
168
169#ifdef TORQUE_DEBUG
170 bool found = false;
171 for(S32 i = 0;i < mStreamPool.size();++i)
172 {
173 StreamObject *so = mStreamPool[i];
174 if(so && so == stream)
175 {
176 found = true;
177 break;
178 }
179 }
180
181 AssertFatal(found, "ZipObject::closeFile() - Attempting to close stream not opened by this ZipObject");
182#endif
183
184 mZipArchive->closeFile(stream->getStream());
185 stream->setStream(NULL);
186}
187
188//-----------------------------------------------------------------------------
189

Callers 3

zipObject.cppFile · 0.45
closeMethod · 0.45
handleCommandLineMethod · 0.45

Calls 3

sizeMethod · 0.45
getStreamMethod · 0.45
setStreamMethod · 0.45

Tested by

no test coverage detected