MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / fromDynamic

Method fromDynamic

include/cpp/Pointer.h:180–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178
179
180 inline void fromDynamic( hx::Object *ptr)
181 {
182 if (!ptr)
183 {
184 value = T();
185 return;
186 }
187 StructHandlerDynamicParams convert(ptr, ptr->__CStr());
188 HANDLER::handler(dhoFromDynamic, &value, sizeof(T), &convert );
189 if (!convert.outProcessed)
190 {
191 hx::NullReference("DynamicData", true);
192 return;
193 }
194 }
195
196 inline operator T& () { return value; }
197};

Callers

nothing calls this directly

Calls 2

NullReferenceFunction · 0.85
__CStrMethod · 0.45

Tested by

no test coverage detected