| 64 | } |
| 65 | |
| 66 | char* Varint::Encode32(char* p, char* limit, uint32_t v) { |
| 67 | if (EncodedLength(v) > limit - p) |
| 68 | return NULL; |
| 69 | return UnsafeEncode32(p, v); |
| 70 | } |
| 71 | |
| 72 | char* Varint::Encode64(char* p, char* limit, uint64_t v) { |
| 73 | if (EncodedLength(v) > limit - p) |
nothing calls this directly
no outgoing calls
no test coverage detected