MCPcopy Create free account
hub / github.com/ddnet/ddnet / WriteIntValue

Method WriteIntValue

src/engine/shared/jsonwriter.cpp:79–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void CJsonWriter::WriteIntValue(int Value)
80{
81 dbg_assert(CanWriteDatatype(), "Cannot write value here");
82 WriteIndent(false);
83 char aBuf[32];
84 str_format(aBuf, sizeof(aBuf), "%d", Value);
85 WriteInternal(aBuf);
86 CompleteDataType();
87}
88
89void CJsonWriter::WriteBoolValue(bool Value)
90{

Callers 5

SaveSkinfileMethod · 0.80
WriteToConfigurationMethod · 0.80
TYPED_TESTFunction · 0.80

Calls 1

str_formatFunction · 0.85

Tested by 1

TYPED_TESTFunction · 0.64