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

Function UInt64RepeatedFieldAccessor

common/value.cc:818–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

816}
817
818void UInt64RepeatedFieldAccessor(
819 int index, const google::protobuf::Message* absl_nonnull message,
820 const google::protobuf::FieldDescriptor* absl_nonnull field,
821 const google::protobuf::Reflection* absl_nonnull reflection,
822 const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool,
823 google::protobuf::MessageFactory* absl_nonnull message_factory,
824 google::protobuf::Arena* absl_nonnull arena, Value* absl_nonnull result) {
825 ABSL_DCHECK(message != nullptr);
826 ABSL_DCHECK(field != nullptr);
827 ABSL_DCHECK(message_factory != nullptr);
828 ABSL_DCHECK(descriptor_pool != nullptr);
829 ABSL_DCHECK(reflection != nullptr);
830 ABSL_DCHECK(arena != nullptr);
831 ABSL_DCHECK(result != nullptr);
832 ABSL_DCHECK_EQ(reflection, message->GetReflection());
833 ABSL_DCHECK_EQ(field->containing_type(), message->GetDescriptor());
834 ABSL_DCHECK(field->is_repeated());
835 ABSL_DCHECK_EQ(field->cpp_type(), google::protobuf::FieldDescriptor::CPPTYPE_UINT64);
836 ABSL_DCHECK_GE(index, 0);
837 ABSL_DCHECK_LT(index, reflection->FieldSize(*message, field));
838
839 *result = UintValue(reflection->GetRepeatedUInt64(*message, field, index));
840}
841
842void Int32RepeatedFieldAccessor(
843 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