public static IshtarObject *ToIshtarObject(float dotnet_value, CallFrame frame = null, IshtarObject **node = null) { var obj = IshtarGC.AllocObject(TYPE_I8.AsRuntimeClass(), node); var clazz = IshtarUnsafe.AsRef <RuntimeIshtarClass>(obj->clazz); obj->vtable[clazz.Field["!!value"].vtable_offset] = (int *)BitConverter.SingleToInt32Bits(dotnet_value); return(obj); }
public static IshtarObject *ToIshtarObject(long dotnet_value, CallFrame frame = null, IshtarObject **node = null) { var obj = IshtarGC.AllocObject(TYPE_I8.AsRuntimeClass(), node); var clazz = IshtarUnsafe.AsRef <RuntimeIshtarClass>(obj->clazz); obj->vtable[clazz.Field["!!value"].vtable_offset] = (long *)dotnet_value; return(obj); }