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

Method WriteInt

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

Source from the content-addressed store, hash-verified

226 }
227
228 TValueContext TBuf::WriteInt(int i) {
229 char buf[22]; // enough to hold any 64-bit number
230 size_t len = ToString(i, buf, sizeof(buf));
231 UnsafeWriteValue(buf, len);
232 return TValueContext(*this);
233 }
234
235 TValueContext TBuf::WriteLongLong(long long i) {
236 static_assert(sizeof(long long) <= 8, "expect sizeof(long long) <= 8");

Callers 2

Y_UNIT_TESTFunction · 0.45
SerializeToJsonMethod · 0.45

Calls 2

TValueContextClass · 0.70
ToStringFunction · 0.50

Tested by

no test coverage detected