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

Function UInt32RepeatedFieldAccessor

common/value.cc:866–888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866void UInt32RepeatedFieldAccessor(
867 int index, const google::protobuf::Message* absl_nonnull message,
868 const google::protobuf::FieldDescriptor* absl_nonnull field,
869 const google::protobuf::Reflection* absl_nonnull reflection,
870 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
871 google::protobuf::MessageFactory* absl_nonnull message_factory,
872 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) {
873 ABSL_DCHECK(message != nullptr);
874 ABSL_DCHECK(field != nullptr);
875 ABSL_DCHECK(message_factory != nullptr);
876 ABSL_DCHECK(descriptor_pool != nullptr);
877 ABSL_DCHECK(reflection != nullptr);
878 ABSL_DCHECK(arena != nullptr);
879 ABSL_DCHECK(result != nullptr);
880 ABSL_DCHECK_EQ(reflection, message->GetReflection());
881 ABSL_DCHECK_EQ(field->containing_type(), message->GetDescriptor());
882 ABSL_DCHECK(field->is_repeated());
883 ABSL_DCHECK_EQ(field->cpp_type(), google::protobuf::FieldDescriptor::CPPTYPE_UINT32);
884 ABSL_DCHECK_GE(index, 0);
885 ABSL_DCHECK_LT(index, reflection->FieldSize(*message, field));
886
887 *result = UintValue(reflection->GetRepeatedUInt32(*message, field, index));
888}
889
890void BoolRepeatedFieldAccessor(
891 int index, const google::protobuf::Message* absl_nonnull message,

Callers

nothing calls this directly

Calls 3

UintValueClass · 0.50
GetReflectionMethod · 0.45
GetDescriptorMethod · 0.45

Tested by

no test coverage detected