MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / get_binary

Method get_binary

external/tinygltf/json.hpp:10813–10829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10811 */
10812 template<typename NumberType>
10813 bool get_binary(const input_format_t format,
10814 const NumberType len,
10815 binary_t& result)
10816 {
10817 bool success = true;
10818 for (NumberType i = 0; i < len; i++)
10819 {
10820 get();
10821 if (JSON_HEDLEY_UNLIKELY(!unexpect_eof(format, "binary")))
10822 {
10823 success = false;
10824 break;
10825 }
10826 result.push_back(static_cast<std::uint8_t>(current));
10827 }
10828 return success;
10829 }
10830
10831 /*!
10832 @param[in] format the current format (for diagnostics)

Callers 1

hashFunction · 0.80

Calls 2

getFunction · 0.85
push_backMethod · 0.80

Tested by

no test coverage detected