MCPcopy Create free account
hub / github.com/crownengine/crown / notify_change_file

Function notify_change_file

src/resource/data_compiler.cpp:116–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116static void notify_change_file(const char *path, Stat &st)
117{
118 TempAllocator512 ta;
119 StringStream ss(ta);
120 ss << "{\"type\":\"change_file\"";
121 ss << ",\"path\":\"" << path << "\"";
122 ss << ",\"size\":\"" << st.size << "\"";
123 ss << ",\"mtime\":\"" << st.mtime << "\"";
124 ss << "}";
125 console_server()->broadcast(string_stream::c_str(ss));
126}
127
128SourceIndex::SourceIndex()
129 : _paths(default_allocator())

Callers 1

Calls 2

console_serverFunction · 0.85
broadcastMethod · 0.80

Tested by

no test coverage detected