Lines Matching refs:p

38   inline const char* operator()(const char* p, const char* limit,  in operator ()()
44 assert(limit - p >= 3); in operator ()()
45 *shared = reinterpret_cast<const unsigned char*>(p)[0]; in operator ()()
46 *non_shared = reinterpret_cast<const unsigned char*>(p)[1]; in operator ()()
47 *value_length = reinterpret_cast<const unsigned char*>(p)[2]; in operator ()()
50 p += 3; in operator ()()
52 if ((p = GetVarint32Ptr(p, limit, shared)) == nullptr) return nullptr; in operator ()()
53 if ((p = GetVarint32Ptr(p, limit, non_shared)) == nullptr) return nullptr; in operator ()()
54 if ((p = GetVarint32Ptr(p, limit, value_length)) == nullptr) { in operator ()()
61 assert(!(static_cast<uint32_t>(limit - p) < (*non_shared + *value_length))); in operator ()()
62 return p; in operator ()()
69 inline const char* operator()(const char* p, const char* limit, in operator ()()
75 if (limit - p < 3) { in operator ()()
78 *shared = reinterpret_cast<const unsigned char*>(p)[0]; in operator ()()
79 *non_shared = reinterpret_cast<const unsigned char*>(p)[1]; in operator ()()
80 *value_length = reinterpret_cast<const unsigned char*>(p)[2]; in operator ()()
83 p += 3; in operator ()()
85 if ((p = GetVarint32Ptr(p, limit, shared)) == nullptr) return nullptr; in operator ()()
86 if ((p = GetVarint32Ptr(p, limit, non_shared)) == nullptr) return nullptr; in operator ()()
87 if ((p = GetVarint32Ptr(p, limit, value_length)) == nullptr) { in operator ()()
92 if (static_cast<uint32_t>(limit - p) < (*non_shared + *value_length)) { in operator ()()
95 return p; in operator ()()
100 inline const char* operator()(const char* p, const char* limit, in operator ()()
103 return DecodeEntry()(p, limit, shared, non_shared, &value_length); in operator ()()
111 inline const char* operator()(const char* p, const char* limit, in operator ()()
116 if (limit - p < 3) return nullptr; in operator ()()
117 *shared = reinterpret_cast<const unsigned char*>(p)[0]; in operator ()()
118 *non_shared = reinterpret_cast<const unsigned char*>(p)[1]; in operator ()()
121 p += 2; in operator ()()
123 if ((p = GetVarint32Ptr(p, limit, shared)) == nullptr) return nullptr; in operator ()()
124 if ((p = GetVarint32Ptr(p, limit, non_shared)) == nullptr) return nullptr; in operator ()()
126 return p; in operator ()()
503 const char* p = data_ + current_; in ParseNextDataKey() local
508 if (p >= limit) { in ParseNextDataKey()
517 p = DecodeEntryFunc()(p, limit, &shared, &non_shared, &value_length); in ParseNextDataKey()
518 if (p == nullptr || key_.Size() < shared) { in ParseNextDataKey()
525 key_.SetKey(Slice(p, non_shared), false /* copy */); in ParseNextDataKey()
529 key_.TrimAppend(shared, p, non_shared); in ParseNextDataKey()
558 value_ = Slice(p + non_shared, value_length); in ParseNextDataKey()
573 const char* p = data_ + current_; in ParseNextIndexKey() local
575 if (p >= limit) { in ParseNextIndexKey()
585 p = DecodeKeyV4()(p, limit, &shared, &non_shared); in ParseNextIndexKey()
588 p = DecodeEntry()(p, limit, &shared, &non_shared, &value_length); in ParseNextIndexKey()
590 if (p == nullptr || key_.Size() < shared) { in ParseNextIndexKey()
597 key_.SetKey(Slice(p, non_shared), false /* copy */); in ParseNextIndexKey()
601 key_.TrimAppend(shared, p, non_shared); in ParseNextIndexKey()
604 value_ = Slice(p + non_shared, value_length); in ParseNextIndexKey()