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

Method StartArray

include/sonic/dom/schema_handler.h:219–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217 }
218
219 sonic_force_inline bool StartArray() noexcept {
220 if (cur_node_) {
221 parent_st_.emplace_back(parent_node_);
222 parent_node_ = cur_node_;
223 cur_node_ = nullptr;
224 }
225 SONIC_ADD_NODE();
226 NodeType *cur = &st_[np_ - 1];
227 cur->o.next.ofs = parent_;
228 parent_ = np_ - 1;
229 return true;
230 }
231
232 sonic_force_inline bool EndObject(uint32_t pairs) {
233 if (parent_node_ && parent_node_->IsObject()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected