| 42 | } |
| 43 | |
| 44 | void Varint::Put32(std::string* dst, uint32_t v) { |
| 45 | char buf[5]; |
| 46 | char* ptr = UnsafeEncode32(buf, v); |
| 47 | dst->append(buf, ptr - buf); |
| 48 | } |
| 49 | |
| 50 | char* Varint::UnsafeEncode64(char* dst, uint64_t v) { |
| 51 | unsigned char* ptr = reinterpret_cast<unsigned char*>(dst); |
nothing calls this directly
no outgoing calls
no test coverage detected