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

Method case_pointer

bindings/python/cobj.cpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 static void case_pointer(PointerType const* Ty, void* Ptr, py::handle Obj)
43 {
44 CPointerObj const& PtrObj = Obj.cast<CPointerObj const&>();
45 void** PPtr = reinterpret_cast<void**>(Ptr);
46 *PPtr = PtrObj.getPtr();
47 }
48
49 template <class T>
50 static void case_composite(T const* Ty, void* Ptr, py::handle Obj)

Callers

nothing calls this directly

Calls 1

getPtrMethod · 0.80

Tested by

no test coverage detected