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

Method size

common/internal/byte_string.cc:212–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212size_t ByteString::size() const {
213 switch (GetKind()) {
214 case ByteStringKind::kSmall:
215 return rep_.small.size;
216 case ByteStringKind::kMedium:
217 return rep_.medium.size;
218 case ByteStringKind::kLarge:
219 return GetLarge().size();
220 }
221}
222
223absl::string_view ByteString::Flatten() {
224 switch (GetKind()) {

Callers 15

opaque_type.ccFile · 0.45
OpaqueTypeDataMethod · 0.45
IsOptionalMethod · 0.45
operator()Method · 0.45
operator()Method · 0.45
MakeOpaqueTypeMethod · 0.45
function_type.ccFile · 0.45
FunctionTypeDataMethod · 0.45
AppendTypeParametersFunction · 0.45
MakeOverloadSignatureFunction · 0.45
NewMethod · 0.45

Calls 1

GetKindFunction · 0.85

Tested by 2

GetSmallStringViewFunction · 0.36
TEST_PFunction · 0.36