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

Function AsReferenceCount

common/memory.h:253–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251
252 ABSL_ATTRIBUTE_RETURNS_NONNULL
253 static const common_internal::ReferenceCount* absl_nonnull AsReferenceCount(
254 uintptr_t ptr) noexcept {
255 ABSL_ASSERT(IsReferenceCount(ptr));
256 return reinterpret_cast<const common_internal::ReferenceCount*>(
257 ptr & kPointerMask);
258 }
259
260 static uintptr_t CopyFrom(uintptr_t other) noexcept { return Own(other); }
261

Callers 4

OwnFunction · 0.85
UnownFunction · 0.85

Calls 1

IsReferenceCountFunction · 0.85

Tested by

no test coverage detected