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

Method case_basic

bindings/python/cobj.cpp:80–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 // TODO: assert alignment is correct!
79 template <class T>
80 static py::object case_basic(BasicType const* Ty, void* Ptr)
81 {
82 return py::cast(*reinterpret_cast<T*>(Ptr));
83 }
84
85 static py::object case_enum(EnumType const* Ty, void* Ptr)
86 {

Callers

nothing calls this directly

Calls 1

castFunction · 0.50

Tested by

no test coverage detected