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

Function SerializeStringArrayProperty

external/tinygltf/tiny_gltf.h:7081–7090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7079}
7080
7081static void SerializeStringArrayProperty(const std::string &key,
7082 const std::vector<std::string> &value,
7083 detail::json &obj) {
7084 detail::json ary;
7085 detail::JsonReserveArray(ary, value.size());
7086 for (auto &s : value) {
7087 detail::JsonPushBack(ary, detail::JsonFromString(s.c_str()));
7088 }
7089 detail::JsonAddMember(obj, key.c_str(), std::move(ary));
7090}
7091
7092static bool ValueToJson(const Value &value, detail::json *ret) {
7093 detail::json obj;

Callers 1

SerializeGltfModelFunction · 0.85

Calls 5

JsonReserveArrayFunction · 0.85
JsonPushBackFunction · 0.85
JsonFromStringFunction · 0.85
JsonAddMemberFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected