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

Class YYjsonStringResult

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected