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

Method parseTrue

include/sonic/dom/parser.h:122–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121 template <typename SAX>
122 sonic_force_inline bool parseTrue(SAX &sax) {
123 constexpr static uint32_t kTrueBin = 0x65757274;
124 if (internal::EqBytes4(json_buf_ + pos_ - 1, kTrueBin)) {
125 pos_ += 3;
126 return sax.Bool(true);
127 }
128 setParseError(kParseErrorInvalidChar);
129 return false;
130 }
131
132 sonic_force_inline StringView parseStringHelper() {
133 uint8_t *src = json_buf_ + pos_;

Callers

nothing calls this directly

Calls 2

EqBytes4Function · 0.85
BoolMethod · 0.45

Tested by

no test coverage detected