public SwiftDate(double timeIntervalSinceNow) { unsafe { fixed(byte *thisDataPtr = StructMarshal.Marshaler.PrepareNominal(this)) { IntPtr thisPtr = new IntPtr(thisDataPtr); NativeMethodsForDDate.PI_DateNewFromInterval(thisPtr, timeIntervalSinceNow); } } }
public SwiftDate(NSDate nSDate) { unsafe { fixed(byte *thisDataPtr = StructMarshal.Marshaler.PrepareNominal(this)) { IntPtr thisPtr = new IntPtr(thisDataPtr); NativeMethodsForDDate.PI_DateNewFromNSDate(thisPtr, nSDate.Handle); } } }
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); } } } }
public NSDate ToNSDate() { unsafe { fixed(byte *thisSwiftDataPtr = StructMarshal.Marshaler.PrepareNominal(this)) { NSDate retval = null; IntPtr retvalIntPtr = IntPtr.Zero; retvalIntPtr = NativeMethodsForDDate.PImethod_DateXamarin_DateDtoNSDate((IntPtr)thisSwiftDataPtr); retval = ObjCRuntime.Runtime.GetNSObject <NSDate> (retvalIntPtr); return(retval); } } }
public static SwiftMetatype GetSwiftMetatype() { return(NativeMethodsForDDate.PIMetadataAccessor_DDate(SwiftMetadataRequest.Complete)); }