| 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"); |
no test coverage detected