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

Method write

Engine/source/core/util/zip/fileHeader.cpp:143–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143bool FileHeader::write(Stream *stream)
144{
145 mHeaderSig = mFileHeaderSignature;
146
147 stream->write(mHeaderSig);
148
149 stream->write(mExtractVer);
150 stream->write(mFlags);
151 stream->write(mCompressMethod);
152 stream->write(mModTime);
153 stream->write(mModDate);
154 stream->write(mCRC32);
155 stream->write(mCompressedSize);
156 stream->write(mUncompressedSize);
157
158 U16 fnLen = mFilename.length(),
159 efLen = 0;
160 stream->write(fnLen);
161 stream->write(efLen);
162
163 if(fnLen)
164 stream->write(fnLen, mFilename);
165
166 // FIXME [tom, 1/23/2007] Write extra fields here
167
168 return true;
169}
170
171//-----------------------------------------------------------------------------
172

Callers 9

rebuildZipMethod · 0.45
copyFileToNewZipMethod · 0.45
_writeMethod · 0.45
detachStreamMethod · 0.45
_writeMethod · 0.45
_finishMethod · 0.45
RecordMethod · 0.45
WriteFunction · 0.45

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected