Home | History | Annotate | Download | only in courgette

Lines Matching full:varint

33 // This is a cut down Varint implementation, implementing only what we use for
36 class Varint {
38 // Maximum lengths of varint encoding of uint32
43 // varint value was not found before |limit|.
62 const uint8* Varint::Parse32WithLimit(const uint8* source,
116 inline uint8* Varint::Encode32(uint8* destination, uint32 value) {
138 const uint8* after = Varint::Parse32WithLimit(current_, end_, output_value);
147 // have shorter varint encoding.
189 uint8 buffer[Varint::kMax32];
190 uint8* end = Varint::Encode32(buffer, value);
196 // varint encoding.
246 const uint8* finger = Varint::Parse32WithLimit(start, end, &version);
253 finger = Varint::Parse32WithLimit(finger, end, &count);
265 finger = Varint::Parse32WithLimit(finger, end, &lengths[i]);