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

Function Int64RepeatedFieldAccessor

common/value.cc:794–816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792}
793
794void Int64RepeatedFieldAccessor(
795 int index, const google::protobuf::Message* absl_nonnull message,
796 const google::protobuf::FieldDescriptor* absl_nonnull field,
797 const google::protobuf::Reflection* absl_nonnull reflection,
798 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
799 google::protobuf::MessageFactory* absl_nonnull message_factory,
800 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) {
801 ABSL_DCHECK(message != nullptr);
802 ABSL_DCHECK(field != nullptr);
803 ABSL_DCHECK(message_factory != nullptr);
804 ABSL_DCHECK(descriptor_pool != nullptr);
805 ABSL_DCHECK(reflection != nullptr);
806 ABSL_DCHECK(arena != nullptr);
807 ABSL_DCHECK(result != nullptr);
808 ABSL_DCHECK_EQ(reflection, message->GetReflection());
809 ABSL_DCHECK_EQ(field->containing_type(), message->GetDescriptor());
810 ABSL_DCHECK(field->is_repeated());
811 ABSL_DCHECK_EQ(field->cpp_type(), google::protobuf::FieldDescriptor::CPPTYPE_INT64);
812 ABSL_DCHECK_GE(index, 0);
813 ABSL_DCHECK_LT(index, reflection->FieldSize(*message, field));
814
815 *result = IntValue(reflection->GetRepeatedInt64(*message, field, index));
816}
817
818void UInt64RepeatedFieldAccessor(
819 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