MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / YYjson

Class YYjson

benchmark/yyjson.hpp:116–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114};
115
116class YYjson : public JsonBase<YYjson, YYjsonParseResult> {
117 public:
118 bool parse_impl(std::string_view json, YYjsonParseResult &pr) const {
119 pr.doc = yyjson_read(json.data(), json.size(), 0);
120 // yyjson_mut_doc *docm = yyjson_doc_mut_copy(pr.doc, NULL);
121 if (pr.doc == NULL) {
122 return false;
123 }
124 return true;
125 }
126};
127
128#endif

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected