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

Method Empty

include/sonic/internal/stack.h:47–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 sonic_force_inline size_t Size() const { return top_ - buf_; }
46 sonic_force_inline size_t Capacity() const { return cap_; }
47 sonic_force_inline bool Empty() const { return Size() == 0; }
48
49 /**
50 * @brief Increase the capacity of buffer if new_cap is greater than the

Callers 7

TYPED_TESTFunction · 0.45
TESTFunction · 0.45
TYPED_TESTFunction · 0.45
TESTFunction · 0.45
SonicError SerializeImplFunction · 0.45
genericnode.hFile · 0.45
UpdateNodeLazyFunction · 0.45

Calls 1

SizeFunction · 0.85

Tested by 4

TYPED_TESTFunction · 0.36
TESTFunction · 0.36
TYPED_TESTFunction · 0.36
TESTFunction · 0.36