MCPcopy Create free account
hub / github.com/chen3feng/toft / Get64

Method Get64

encoding/varint.cpp:152–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152bool Varint::Get64(StringPiece* input, uint64_t* value) {
153 const char* p = input->data();
154 const char* limit = p + input->size();
155 const char* q = Decode64(p, limit, value);
156 if (q == NULL) {
157 return false;
158 } else {
159 *input = StringPiece(q, limit - q);
160 return true;
161 }
162}
163
164const char* Varint::GetLengthPrefixedStringPiece(const char* p,
165 const char* limit,

Callers

nothing calls this directly

Calls 3

StringPieceClass · 0.85
dataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected