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

Function Int32RepeatedFieldAccessor

common/value.cc:842–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

840}
841
842void Int32RepeatedFieldAccessor(
843 int index, const google::protobuf::Message* absl_nonnull message,
844 const google::protobuf::FieldDescriptor* absl_nonnull field,
845 const google::protobuf::Reflection* absl_nonnull reflection,
846 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
847 google::protobuf::MessageFactory* absl_nonnull message_factory,
848 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) {
849 ABSL_DCHECK(message != nullptr);
850 ABSL_DCHECK(field != nullptr);
851 ABSL_DCHECK(message_factory != nullptr);
852 ABSL_DCHECK(descriptor_pool != nullptr);
853 ABSL_DCHECK(reflection != nullptr);
854 ABSL_DCHECK(arena != nullptr);
855 ABSL_DCHECK(result != nullptr);
856 ABSL_DCHECK_EQ(reflection, message->GetReflection());
857 ABSL_DCHECK_EQ(field->containing_type(), message->GetDescriptor());
858 ABSL_DCHECK(field->is_repeated());
859 ABSL_DCHECK_EQ(field->cpp_type(), google::protobuf::FieldDescriptor::CPPTYPE_INT32);
860 ABSL_DCHECK_GE(index, 0);
861 ABSL_DCHECK_LT(index, reflection->FieldSize(*message, field));
862
863 *result = IntValue(reflection->GetRepeatedInt32(*message, field, index));
864}
865
866void UInt32RepeatedFieldAccessor(
867 int index, const google::protobuf::Message* absl_nonnull message,

Callers

nothing calls this directly

Calls 3

IntValueClass · 0.50
GetReflectionMethod · 0.45
GetDescriptorMethod · 0.45

Tested by

no test coverage detected