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

Method case_pointer

bindings/python/cobj.cpp:90–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 static py::object case_pointer(PointerType const* Ty, void* Ptr)
91 {
92 auto* Ret = new CPointerObj{*Ty, Data<void*>::view((void**)Ptr)};
93 return py::cast(Ret, py::return_value_policy::take_ownership);
94 }
95
96 template <class T, class CT>
97 static py::object case_composite_impl(CT const* Ty, void* Ptr)

Callers

nothing calls this directly

Calls 1

castFunction · 0.50

Tested by

no test coverage detected