| 279 | } |
| 280 | |
| 281 | bool WriteInt(int i) { |
| 282 | char buffer[11]; |
| 283 | const char* end = internal::i32toa(i, buffer); |
| 284 | PutReserve(*os_, static_cast<size_t>(end - buffer)); |
| 285 | for (const char* p = buffer; p != end; ++p) |
| 286 | PutUnsafe(*os_, static_cast<typename TargetEncoding::Ch>(*p)); |
| 287 | return true; |
| 288 | } |
| 289 | |
| 290 | bool WriteUint(unsigned u) { |
| 291 | char buffer[10]; |
nothing calls this directly
no test coverage detected