Exemple #1
0
        // 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);
        }
Exemple #2
0
 public static IObjectBase GetFromObjData(IntPtr objdata)
 {
     return((IObjectBase)HDL.GetObj(objdata));
 }