MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / empty

Method empty

common/internal/byte_string.cc:201–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201bool ByteString::empty() const {
202 switch (GetKind()) {
203 case ByteStringKind::kSmall:
204 return rep_.small.size == 0;
205 case ByteStringKind::kMedium:
206 return rep_.medium.size == 0;
207 case ByteStringKind::kLarge:
208 return GetLarge().empty();
209 }
210}
211
212size_t ByteString::size() const {
213 switch (GetKind()) {

Callers 15

BasicStructTypeClass · 0.45
OpaqueDebugStringFunction · 0.45
DebugStringMethod · 0.45
InternOpaqueTypeMethod · 0.45
MakeStructTypeMethod · 0.45
AppendTypeParametersFunction · 0.45
MakeOverloadSignatureFunction · 0.45
ConcatMethod · 0.45
LegacyByteStringFunction · 0.45
TEST_PFunction · 0.45
HandleFormatTypeSpecFunction · 0.45

Calls 1

GetKindFunction · 0.85

Tested by 1

TEST_PFunction · 0.36