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

Method WriteLongLong

library/cpp/json/writer/json.cpp:235–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 }
234
235 TValueContext TBuf::WriteLongLong(long long i) {
236 static_assert(sizeof(long long) <= 8, "expect sizeof(long long) <= 8");
237 char buf[22]; // enough to hold any 64-bit number
238 size_t len = ToString(i, buf, sizeof(buf));
239 UnsafeWriteValue(buf, len);
240 return TValueContext(*this);
241 }
242
243 TValueContext TBuf::WriteULongLong(unsigned long long i) {
244 char buf[22]; // enough to hold any 64-bit number

Callers 2

operator()Method · 0.45
WriteMethod · 0.45

Calls 2

TValueContextClass · 0.70
ToStringFunction · 0.50

Tested by

no test coverage detected