Lines Matching refs:pos
45 std::tuple<bool, uint64_t, const uint8_t*> parseLength(const uint8_t* pos, const uint8_t* end, in parseLength() argument
47 if (pos + sizeof(T) > end) { in parseLength()
48 parseClient->error(pos - 1, insufficientLengthString(sizeof(T), end - pos, "length field")); in parseLength()
49 return {false, 0, pos}; in parseLength()
52 const uint8_t* intEnd = pos + sizeof(T); in parseLength()
55 result = static_cast<T>((result << 8) | *pos++); in parseLength()
56 } while (pos < intEnd); in parseLength()
57 return {true, result, pos}; in parseLength()
207 const uint8_t* pos, const uint8_t* end, in handleEntries() argument
213 if (pos == end) { in handleEntries()
217 std::tie(pos, parseClient) = parseRecursively(pos, end, emitViews, parseClient); in handleEntries()
220 return {pos, parseClient}; in handleEntries()
231 const uint8_t* pos; in handleCompound() local
232 std::tie(pos, parseClient) = in handleCompound()
236 return {pos, parseClient->itemEnd(item, hdrBegin, valueBegin, pos)}; in handleCompound()
248 const uint8_t* pos = begin; in parseRecursively() local
250 MajorType type = static_cast<MajorType>(*pos & 0xE0); in parseRecursively()
251 uint8_t tagInt = *pos & 0x1F; in parseRecursively()
252 ++pos; in parseRecursively()
266 std::tie(success, addlData, pos) = parseLength<uint8_t>(pos, end, parseClient); in parseRecursively()
270 std::tie(success, addlData, pos) = parseLength<uint16_t>(pos, end, parseClient); in parseRecursively()
274 std::tie(success, addlData, pos) = parseLength<uint32_t>(pos, end, parseClient); in parseRecursively()
278 std::tie(success, addlData, pos) = parseLength<uint64_t>(pos, end, parseClient); in parseRecursively()
291 return handleUint(addlData, begin, pos, parseClient); in parseRecursively()
294 return handleNint(addlData, begin, pos, parseClient); in parseRecursively()
298 … return handleString<ViewBstr>(addlData, begin, pos, end, "byte string", parseClient); in parseRecursively()
300 return handleString<Bstr>(addlData, begin, pos, end, "byte string", parseClient); in parseRecursively()
305 … return handleString<ViewTstr>(addlData, begin, pos, end, "text string", parseClient); in parseRecursively()
307 return handleString<Tstr>(addlData, begin, pos, end, "text string", parseClient); in parseRecursively()
311 return handleCompound(std::make_unique<IncompleteArray>(addlData), addlData, begin, pos, in parseRecursively()
316 pos, end, "map", emitViews, parseClient); in parseRecursively()
319 return handleCompound(std::make_unique<IncompleteSemanticTag>(addlData), 1, begin, pos, in parseRecursively()
326 return handleBool(addlData, begin, pos, parseClient); in parseRecursively()
328 return handleNull(begin, pos, parseClient); in parseRecursively()