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

Class cJsonStringResult

benchmark/cjson.hpp:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include "json.h"
21
22class cJsonStringResult : public StringResult<cJsonStringResult> {
23 public:
24 std::string_view str_impl() const { return s; }
25 cJsonStringResult() : s(nullptr) {}
26 ~cJsonStringResult() { cJSON_free(s); }
27 char *s;
28};
29
30class cJsonParseResult
31 : public ParseResult<cJsonParseResult, cJsonStringResult> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected