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

Method detachStream

Engine/source/core/util/zip/zipSubStream.cpp:90–109  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

88
89//--------------------------------------
90void ZipSubRStream::detachStream()
91{
92 if (m_pZipStream != NULL)
93 {
94 // close out zip stream...
95 inflateEnd(m_pZipStream);
96
97 delete [] m_pInputBuffer;
98 m_pInputBuffer = NULL;
99 delete m_pZipStream;
100 m_pZipStream = NULL;
101 }
102
103 m_pStream = NULL;
104 m_originalSlavePosition = 0;
105 m_uncompressedSize = 0;
106 m_currentPosition = 0;
107 m_EOS = false;
108 setStatus(Closed);
109}
110
111//--------------------------------------
112Stream* ZipSubRStream::getStream()

Callers 2

closeFileMethod · 0.45
extractFileMethod · 0.45

Calls 3

deflateFunction · 0.50
deflateEndFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected