| 70 | } |
| 71 | |
| 72 | char* Varint::Encode64(char* p, char* limit, uint64_t v) { |
| 73 | if (EncodedLength(v) > limit - p) |
| 74 | return NULL; |
| 75 | return UnsafeEncode64(p, v); |
| 76 | } |
| 77 | |
| 78 | void Varint::PutLengthPrefixedStringPiece(std::string* dst, const StringPiece& value) { |
| 79 | Put32(dst, value.size()); |
nothing calls this directly
no outgoing calls
no test coverage detected