public bool MightDrift(CMClock otherClock) { if (otherClock == null) { throw new ArgumentNullException("otherClock"); } return(CMClockMightDrift(Handle, otherClock.Handle)); }
public CMTimebaseError SetMasterClock(CMClock newMasterClock) { if (newMasterClock is null) { ObjCRuntime.ThrowHelper.ThrowArgumentNullException(nameof(newMasterClock)); } return(CMTimebaseSetMasterClock(Handle, newMasterClock.Handle)); }
public CMTimebaseError SetMasterClock(CMClock newMasterClock) { if (newMasterClock == null) { throw new ArgumentNullException(nameof(newMasterClock)); } return(CMTimebaseSetMasterClock(Handle, newMasterClock.Handle)); }
public bool MightDrift(CMClock otherClock) { if (otherClock is null) { ObjCRuntime.ThrowHelper.ThrowArgumentNullException(nameof(otherClock)); } return(CMClockMightDrift(Handle, otherClock.Handle)); }
public CMTimebase(CFAllocator?allocator, CMClock sourceClock) { if (sourceClock is null) { throw new ArgumentNullException(nameof(sourceClock)); } var error = CMTimebaseCreateWithSourceClock(allocator.GetHandle(), sourceClock.Handle, out handle); if (error != CMTimebaseError.None) { throw new ArgumentException(error.ToString()); } }
static IntPtr Create(CFAllocator?allocator, CMClock sourceClock) { if (sourceClock is null) { ObjCRuntime.ThrowHelper.ThrowArgumentNullException(nameof(sourceClock)); } var error = CMTimebaseCreateWithSourceClock(allocator.GetHandle(), sourceClock.Handle, out var handle); if (error != CMTimebaseError.None) { ObjCRuntime.ThrowHelper.ThrowArgumentException(error.ToString()); } return(handle); }
static IntPtr Create(CMClock masterClock) { if (masterClock is null) { ObjCRuntime.ThrowHelper.ThrowArgumentNullException(nameof(masterClock)); } var error = CMTimebaseCreateWithMasterClock(IntPtr.Zero, masterClock.Handle, out var handle); if (error != CMTimebaseError.None) { ObjCRuntime.ThrowHelper.ThrowArgumentException(error.ToString()); } return(handle); }
public CMTimebase(CMClock masterClock) { if (masterClock == null) { throw new ArgumentNullException("masterClock"); } var error = CMTimebaseCreateWithMasterClock(IntPtr.Zero, masterClock.Handle, out handle); if (error != CMTimebaseError.None) { throw new ArgumentException(error.ToString()); } CFObject.CFRetain(Handle); }
public CMTimebase(CFAllocator?allocator, CMClock sourceClock) : base(Create(allocator, sourceClock), true) { }
public CMTimebase(CMClock masterClock) : base(Create(masterClock), true) { }