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

Function addLength

include/sonic/dom/genericnode.h:1025–1028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1023 }
1024
1025 sonic_force_inline void addLength(size_t c) noexcept {
1026 sonic_assert(IsContainer() || IsString());
1027 this->sv.len += (c << kTotalTypeBits);
1028 }
1029 sonic_force_inline void subLength(size_t c) noexcept {
1030 sonic_assert(IsContainer() || IsString());
1031 this->sv.len -= (c << kTotalTypeBits);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected