| 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_; |