MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / SaveFileInfo

Function SaveFileInfo

engine/Poseidon/IO/PackFiles.cpp:176–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void SaveFileInfo(const FileInfoExt& i, QOStream& f)
177{
178 // save zero terminate name
179 f.write((const char*)i.name, i.name.GetLength() + 1);
180 f.write(&i.compressedMagic, sizeof(i.compressedMagic));
181 f.write(&i.uncompressedSize, sizeof(i.uncompressedSize));
182 f.write(&i.startOffset, sizeof(i.startOffset));
183 f.write(&i.time, sizeof(i.time));
184 f.write(&i.length, sizeof(i.length));
185}
186
187void SaveFileInfo(const FileInfoExt& i, SOFStream& f)
188{

Callers 2

SaveHeadersOptMethod · 0.85
SavePropertiesMethod · 0.85

Calls 2

writeMethod · 0.45
GetLengthMethod · 0.45

Tested by

no test coverage detected