// callback wrappers public static IObjectBase _IP2Obj(IntPtr varobj, bool freehandle = false) { IntPtr handleP = Marshal.ReadIntPtr(varobj, NI.VarObj.offsetOfData); IObjectBase obj = (IObjectBase)HDL.GetObj(handleP); if (freehandle) { HDL.Free(handleP); } return(obj); }
public static IObjectBase GetFromObjData(IntPtr objdata) { return((IObjectBase)HDL.GetObj(objdata)); }