MCPcopy Create free account
hub / github.com/bitfieldaudio/OTTO / get_msgpack_object

Method get_msgpack_object

external/include/json.hpp:5484–5497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5482
5483 template<typename NumberType>
5484 BasicJsonType get_msgpack_object(const NumberType len)
5485 {
5486 BasicJsonType result = value_t::object;
5487 std::generate_n(std::inserter(*result.m_value.object,
5488 result.m_value.object->end()),
5489 len, [this]()
5490 {
5491 get();
5492 auto key = get_msgpack_string();
5493 auto val = parse_msgpack_internal();
5494 return std::make_pair(std::move(key), std::move(val));
5495 });
5496 return result;
5497 }
5498
5499 /*!
5500 @brief check if input ended

Callers

nothing calls this directly

Calls 2

getFunction · 0.70
endMethod · 0.45

Tested by

no test coverage detected