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

Method AssignUInt32

eval/public/structs/field_access_impl.cc:370–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368 }
369
370 bool AssignUInt32(const CelValue& cel_value) const {
371 uint64_t value;
372 if (!cel_value.GetValue(&value)) {
373 return false;
374 }
375 if (!cel::internal::CheckedUint64ToUint32(value).ok()) {
376 return false;
377 }
378 static_cast<const Derived*>(this)->SetUInt32(value);
379 return true;
380 }
381
382 bool AssignInt64(const CelValue& cel_value) const {
383 int64_t value;

Callers

nothing calls this directly

Calls 4

CheckedUint64ToUint32Function · 0.85
GetValueMethod · 0.45
okMethod · 0.45
SetUInt32Method · 0.45

Tested by

no test coverage detected