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

Method WriteLongLong

library/cpp/json/ordered_maps/json_ordered.cpp:242–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240 }
241
242 TValueContext TBuf::WriteLongLong(long long i) {
243 static_assert(sizeof(long long) <= 8, "expect sizeof(long long) <= 8");
244 char buf[22]; // enough to hold any 64-bit number
245 size_t len = ToString(i, buf, sizeof(buf));
246 UnsafeWriteValue(buf, len);
247 return TValueContext(*this);
248 }
249
250 TValueContext TBuf::WriteULongLong(unsigned long long i) {
251 char buf[22]; // enough to hold any 64-bit number

Callers 1

WriteMethod · 0.45

Calls 2

TValueContextClass · 0.70
ToStringFunction · 0.50

Tested by

no test coverage detected