| 306 | } |
| 307 | |
| 308 | bool WriteUint64(uint64_t u64) { |
| 309 | char buffer[20]; |
| 310 | char* end = internal::u64toa(u64, buffer); |
| 311 | PutReserve(*os_, static_cast<size_t>(end - buffer)); |
| 312 | for (char* p = buffer; p != end; ++p) |
| 313 | PutUnsafe(*os_, static_cast<typename TargetEncoding::Ch>(*p)); |
| 314 | return true; |
| 315 | } |
| 316 | |
| 317 | bool WriteDouble(double d) { |
| 318 | if (internal::Double(d).IsNanOrInf()) { |
nothing calls this directly
no test coverage detected