MCPcopy Create free account
hub / github.com/catboost/catboost / WriteBool

Method WriteBool

library/cpp/json/writer/json.cpp:221–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 }
220
221 TValueContext TBuf::WriteBool(bool b) {
222 constexpr TStringBuf trueVal = "true";
223 constexpr TStringBuf falseVal = "false";
224 UnsafeWriteValue(b ? trueVal : falseVal);
225 return TValueContext(*this);
226 }
227
228 TValueContext TBuf::WriteInt(int i) {
229 char buf[22]; // enough to hold any 64-bit number

Callers 2

WriteFlowMethod · 0.45
WriteMethod · 0.45

Calls 1

TValueContextClass · 0.70

Tested by

no test coverage detected