| 162 | } |
| 163 | |
| 164 | const char* Varint::GetLengthPrefixedStringPiece(const char* p, |
| 165 | const char* limit, |
| 166 | StringPiece* result) { |
| 167 | uint32_t len; |
| 168 | p = Decode32(p, limit, &len); |
| 169 | if (p == NULL) |
| 170 | return NULL; |
| 171 | if (p + len > limit) |
| 172 | return NULL; |
| 173 | *result = StringPiece(p, len); |
| 174 | return p + len; |
| 175 | } |
| 176 | |
| 177 | bool Varint::GetLengthPrefixedStringPiece(StringPiece* input, StringPiece* result) { |
| 178 | uint32_t len; |
nothing calls this directly
no test coverage detected