| 266 | static void Destroy(uintptr_t ptr) noexcept { Unown(ptr); } |
| 267 | |
| 268 | static uintptr_t Own(uintptr_t ptr) noexcept { |
| 269 | if (IsReferenceCount(ptr)) { |
| 270 | const auto* refcount = Owner::AsReferenceCount(ptr); |
| 271 | ABSL_ASSUME(refcount != nullptr); |
| 272 | common_internal::StrongRef(refcount); |
| 273 | } |
| 274 | return ptr; |
| 275 | } |
| 276 | |
| 277 | static void Unown(uintptr_t ptr) noexcept { |
| 278 | if (IsReferenceCount(ptr)) { |
no test coverage detected