MCPcopy Create free account
hub / github.com/Illation/ETEngine / Write

Method Write

Engine/source/EtCore/FileSystem/Json/JsonWriter.cpp:17–27  ·  view source on GitHub ↗

--------------------------------- Writer::Write Write the json root object to the internal string, which gets cleared before

Source from the content-addressed store, hash-verified

15// Write the json root object to the internal string, which gets cleared before
16//
17bool Writer::Write(Object const* const rootObj)
18{
19 if (rootObj == nullptr)
20 {
21 LOG("JSON::Writer::Write > Failed to write JSON to string, root object was null", LogLevel::Warning);
22 return false;
23 }
24
25 m_JsonString.clear();
26 return WriteObject(rootObj);
27}
28
29//---------------------------------
30// Writer::WriteObject

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected