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

Method WriteInt

library/cpp/json/ordered_maps/json_ordered.cpp:235–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Y_UNIT_TESTFunction · 0.45

Calls 2

TValueContextClass · 0.70
ToStringFunction · 0.50

Tested by

no test coverage detected