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

Function subLength

include/sonic/dom/genericnode.h:1029–1032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);
1032 }
1033
1034 sonic_force_inline TypeFlag getBasicType() const noexcept {
1035 return static_cast<TypeFlag>(t.t & kBasicTypeMask);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected