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

Function StringMapFieldKeyAccessor

common/value.cc:414–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414void StringMapFieldKeyAccessor(const google::protobuf::MapKey& key,
415 const google::protobuf::Message* absl_nonnull message,
416 google::protobuf::Arena* absl_nonnull arena,
417 Value* absl_nonnull result) {
418 ABSL_DCHECK(message != nullptr);
419 ABSL_DCHECK(arena != nullptr);
420 ABSL_DCHECK(result != nullptr);
421
422#if CEL_INTERNAL_PROTOBUF_OSS_VERSION_PREREQ(5, 30, 0)
423 *result = StringValue(Borrower::Arena(MessageArenaOr(message, arena)),
424 key.GetStringValue());
425#else
426 *result = StringValue(arena, key.GetStringValue());
427#endif
428}
429
430} // namespace
431

Callers

nothing calls this directly

Calls 3

ArenaFunction · 0.85
StringValueClass · 0.50
GetStringValueMethod · 0.45

Tested by

no test coverage detected