internal static ushortp frompointer(SWIGTYPE_p_unsigned_short t) { global::System.IntPtr cPtr = NDalicPINVOKE.ushortp_frompointer(SWIGTYPE_p_unsigned_short.getCPtr(t)); ushortp ret = (cPtr == global::System.IntPtr.Zero) ? null : new ushortp(cPtr, false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public void ushortpConstructor() { tlog.Debug(tag, $"ushortpConstructor START"); var testingTarget = new ushortp(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ushortp>(testingTarget, "Should be an Instance of ushortp!"); testingTarget.Dispose(); tlog.Debug(tag, $"ushortpConstructor END (OK)"); }
public void ushortpFrompointer() { tlog.Debug(tag, $"ushortpFrompointer START"); using (ushortp data = new ushortp()) { var testingTarget = ushortp.frompointer(data.cast()); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ushortp>(testingTarget, "Should be an Instance of ushortp!"); testingTarget.Dispose(); } tlog.Debug(tag, $"ushortpFrompointer END (OK)"); }
public void ushortpValue() { tlog.Debug(tag, $"ushortpValue START"); var testingTarget = new ushortp(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ushortp>(testingTarget, "Should be an Instance of ushortp!"); var result = testingTarget.value(); tlog.Debug(tag, "value : " + result); testingTarget.Dispose(); tlog.Debug(tag, $"ushortpValue END (OK)"); }
public void ushortpAssign() { tlog.Debug(tag, $"ushortpAssign START"); var testingTarget = new ushortp(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <ushortp>(testingTarget, "Should be an Instance of ushortp!"); try { testingTarget.assign(1); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"ushortpAssign END (OK)"); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ushortp obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }