public static SwiftDate SwiftDate_TimeIntervalSince1970(double timeIntervalSince1970) { unsafe { SwiftDate this0 = StructMarshal.DefaultNominal <SwiftDate> (); fixed(byte *thisDataPtr = StructMarshal.Marshaler.PrepareNominal(this0)) { IntPtr thisPtr = new IntPtr(thisDataPtr); NativeMethodsForDDate.PI_Date_timeIntervalSince1970(thisPtr, timeIntervalSince1970); return(this0); } } }
public SwiftDate(double timeInterval, SwiftDate since) { unsafe { fixed(byte *thisDataPtr = StructMarshal.Marshaler.PrepareNominal(this)) { fixed(byte *sinceSwiftDataPtr = StructMarshal.Marshaler.PrepareNominal(since)) { IntPtr thisPtr = new IntPtr(thisDataPtr); NativeMethodsForDDate.PI_Date(thisPtr, timeInterval, (IntPtr)sinceSwiftDataPtr); } } } }