MCPcopy Create free account
hub / github.com/ZDoom/Raze / JsonWriteHandshakeObj

Function JsonWriteHandshakeObj

libraries/discordrpc/src/serialization.cpp:170–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170size_t JsonWriteHandshakeObj(char* dest, size_t maxLen, int version, const char* applicationId)
171{
172 JsonWriter writer(dest, maxLen);
173
174 {
175 WriteObject obj(writer);
176 WriteKey(writer, "v");
177 writer.Int(version);
178 WriteKey(writer, "client_id");
179 writer.String(applicationId);
180 }
181
182 return writer.Size();
183}
184
185size_t JsonWriteSubscribeCommand(char* dest, size_t maxLen, int nonce, const char* evtName)
186{

Callers 1

OpenMethod · 0.85

Calls 4

WriteKeyFunction · 0.85
IntMethod · 0.80
StringMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected