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

Method SaveProperties

engine/Poseidon/IO/PackFiles.cpp:424–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424void FileBankManager::SaveProperties(QOStream& out, const QFProperty* prop, int nProp)
425{
426 if (prop && nProp > 0)
427 {
428 // save terminator
429 FileInfoExt terminator;
430 terminator.Zero();
431 terminator.compressedMagic = VersionMagic;
432 SaveFileInfo(terminator, out);
433 for (int i = 0; i < nProp; i++)
434 {
435 out.write((const char*)prop[i].name, prop[i].name.GetLength() + 1);
436 out.write((const char*)prop[i].value, prop[i].value.GetLength() + 1);
437 }
438 out.write("", 1);
439 }
440}
441
442void FileBankManager::SaveProperties(SOFStream& out, const QFProperty* prop, int nProp)
443{

Callers

nothing calls this directly

Calls 4

SaveFileInfoFunction · 0.85
ZeroMethod · 0.80
writeMethod · 0.45
GetLengthMethod · 0.45

Tested by

no test coverage detected