MCPcopy Create free account
hub / github.com/NativeScript/android / IsValid

Function IsValid

test-app/runtime/src/main/cpp/include/cppgc/persistent.h:229–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227 }
228
229 bool IsValid() const {
230 // Ideally, handling kSentinelPointer would be done by the embedder. On the
231 // other hand, having Persistent aware of it is beneficial since no node
232 // gets wasted.
233 return GetValue() != nullptr && GetValue() != kSentinelPointer;
234 }
235
236 void Assign(T* ptr) {
237 if (IsValid()) {

Callers 11

BasicPersistentFunction · 0.85
persistent.hFile · 0.85
ClearFunction · 0.85
AssignFunction · 0.85
ClearFromGCFunction · 0.85
AssignUnsafeFunction · 0.85
AssignSafeFunction · 0.85
ClearFromGCFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected