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

Class ParseResult

include/sonic/error.h:91–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91struct ParseResult {
92 public:
93 ParseResult() noexcept {}
94 ParseResult(SonicError err, size_t off) noexcept : err_(err), off_(off) {}
95 ParseResult(SonicError err) noexcept : err_(err) {}
96 sonic_force_inline SonicError Error() const noexcept { return err_; }
97 sonic_force_inline size_t Offset() const noexcept { return off_; }
98
99 private:
100 SonicError err_{kErrorNone};
101 size_t off_{0};
102};
103
104} // namespace sonic_json

Callers 3

GetOnDemandFunction · 0.50
clearMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected