MCPcopy Create free account
hub / github.com/aguinet/dragonffi / getObj

Method getObj

bindings/python/cobj.cpp:567–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565}
566
567std::unique_ptr<CObj> CPointerObj::getObj() {
568 auto PteeTy = getPointeeType();
569 auto Ret = TypeDispatcher<PtrToObjView>::switch_(PteeTy, getPtr());
570 if (PteeTy.hasConst()) {
571 Ret->setConst();
572 }
573 return Ret;
574}
575
576// We do this to save formats buffers, because their lifetime need to be
577// conserved by us.

Callers

nothing calls this directly

Calls 1

setConstMethod · 0.80

Tested by

no test coverage detected