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

Method WriteBool

library/cpp/json/ordered_maps/json_ordered.cpp:228–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226 }
227
228 TValueContext TBuf::WriteBool(bool b) {
229 constexpr TStringBuf trueVal = "true";
230 constexpr TStringBuf falseVal = "false";
231 UnsafeWriteValue(b ? trueVal : falseVal);
232 return TValueContext(*this);
233 }
234
235 TValueContext TBuf::WriteInt(int i) {
236 char buf[22]; // enough to hold any 64-bit number

Callers 1

WriteMethod · 0.45

Calls 1

TValueContextClass · 0.70

Tested by

no test coverage detected