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

Method parseNull

include/sonic/dom/parser.h:99–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97
98 template <typename SAX>
99 sonic_force_inline bool parseNull(SAX &sax) {
100 const static uint32_t kNullBin = 0x6c6c756e;
101 if (internal::EqBytes4(json_buf_ + pos_ - 1, kNullBin)) {
102 pos_ += 3;
103 return sax.Null();
104 }
105 setParseError(kParseErrorInvalidChar);
106 return false;
107 }
108
109 template <typename SAX>
110 sonic_force_inline bool parseFalse(SAX &sax) {

Callers

nothing calls this directly

Calls 2

EqBytes4Function · 0.85
NullMethod · 0.45

Tested by

no test coverage detected