MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getInnerSharedPtr

Method getInnerSharedPtr

valdi_core/src/valdi_core/cpp/Utils/Shared.cpp:75–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75const Shared<SharedPtrRefCountable>* SharedPtrRefCountable::getInnerSharedPtr() const {
76 return reinterpret_cast<const Shared<SharedPtrRefCountable>*>(
77 &reinterpret_cast<const EnableSharedFromThisPrivate*>(
78 static_cast<const std::enable_shared_from_this<SharedPtrRefCountable>*>(this))
79 ->weakPtr);
80}
81
82void SharedPtrRefCountable::unsafeRetainInner() {
83 SharedPtrPrivate storage;

Callers 3

strongRefFunction · 0.80
unmarshallBridgeObjectFunction · 0.80
createWorkerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected