MCPcopy Create free account
hub / github.com/audacity/audacity / ProjectSerializer

Method ProjectSerializer

libraries/lib-project-file-io/ProjectSerializer.cpp:350–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348} // namespace
349
350ProjectSerializer::ProjectSerializer(size_t allocSize)
351{
352 static std::once_flag flag;
353 std::call_once(flag, []{
354 // Just once per run, store header information in the unique static
355 // dictionary that will be written into each project that is saved.
356 // Store the size of "wxStringCharType" so we can convert during recovery
357 // in case the file is used on a system with a different character size.
358 char size = sizeof(wxStringCharType);
359 mDict.AppendByte(FT_CharSize);
360 mDict.AppendData(&size, 1);
361 });
362
363 mDictChanged = false;
364}
365
366ProjectSerializer::~ProjectSerializer()
367{

Callers

nothing calls this directly

Calls 2

AppendByteMethod · 0.80
AppendDataMethod · 0.80

Tested by

no test coverage detected