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

Method case_basic

bindings/python/cobj.cpp:130–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128{
129 template <class T>
130 static std::unique_ptr<CObj> case_basic(BasicType const* Ty, void* Ptr)
131 {
132 auto* TPtr = reinterpret_cast<T*>(Ptr);
133 return std::unique_ptr<CObj>{new CBasicObj<T>{*Ty, Data<T>::view(TPtr)}};
134 }
135
136 static std::unique_ptr<CObj> case_enum(EnumType const* Ty, void* Ptr)
137 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected