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

Function WriteOptionalString

libraries/discordrpc/src/serialization.cpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66template <typename T>
67void WriteOptionalString(JsonWriter& w, T& k, const char* value)
68{
69 if (value && value[0]) {
70 w.Key(k, sizeof(T) - 1);
71 w.String(value);
72 }
73}
74
75static void JsonWriteNonce(JsonWriter& writer, int nonce)
76{

Callers 1

JsonWriteRichPresenceObjFunction · 0.85

Calls 2

KeyMethod · 0.80
StringMethod · 0.80

Tested by

no test coverage detected