MCPcopy Create free account
hub / github.com/baldurk/renderdoc / sync

Method sync

qrenderdoc/Code/qrenderdoc.cpp:99–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 fputs(msg.c_str(), file);
98 }
99 virtual int sync() override
100 {
101 rdcstr str = this->str().c_str();
102 int idx = str.indexOf('\n');
103 if(idx >= 0)
104 {
105 rdcstr msg = str.substr(0, idx + 1);
106 RENDERDOC_LogMessage(LogType::Comment, "EXTN", __FILE__, __LINE__, msg);
107 fputs(msg.c_str(), file);
108 str = str.substr(idx + 1);
109 this->str("");
110 this->sputn(str.c_str(), str.size());
111 }
112 return 0;
113 }
114
115 // force a sync on every output
116 virtual std::streamsize xsputn(const char *s, std::streamsize n) override

Callers

nothing calls this directly

Calls 6

RENDERDOC_LogMessageFunction · 0.85
c_strMethod · 0.45
strMethod · 0.45
indexOfMethod · 0.45
substrMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected