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

Function BoolRepeatedFieldAccessor

common/value.cc:890–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888}
889
890void BoolRepeatedFieldAccessor(
891 int index, const google::protobuf::Message* absl_nonnull message,
892 const google::protobuf::FieldDescriptor* absl_nonnull field,
893 const google::protobuf::Reflection* absl_nonnull reflection,
894 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
895 google::protobuf::MessageFactory* absl_nonnull message_factory,
896 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) {
897 ABSL_DCHECK(message != nullptr);
898 ABSL_DCHECK(field != nullptr);
899 ABSL_DCHECK(message_factory != nullptr);
900 ABSL_DCHECK(descriptor_pool != nullptr);
901 ABSL_DCHECK(reflection != nullptr);
902 ABSL_DCHECK(arena != nullptr);
903 ABSL_DCHECK(result != nullptr);
904 ABSL_DCHECK_EQ(reflection, message->GetReflection());
905 ABSL_DCHECK_EQ(field->containing_type(), message->GetDescriptor());
906 ABSL_DCHECK(field->is_repeated());
907 ABSL_DCHECK_EQ(field->cpp_type(), google::protobuf::FieldDescriptor::CPPTYPE_BOOL);
908 ABSL_DCHECK_GE(index, 0);
909 ABSL_DCHECK_LT(index, reflection->FieldSize(*message, field));
910
911 *result = BoolValue(reflection->GetRepeatedBool(*message, field, index));
912}
913
914void StringRepeatedFieldAccessor(
915 int index, const google::protobuf::Message* absl_nonnull message,

Callers

nothing calls this directly

Calls 3

BoolValueClass · 0.50
GetReflectionMethod · 0.45
GetDescriptorMethod · 0.45

Tested by

no test coverage detected