Beispiel #1
0
        private static unsafe int DoSetDebugLevel(IntPtr aPtr, uint aVersion, uint aaDebugLevel)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDebug2 self = (DvServiceLinnCoUkDebug2)gch.Target;

            self.SetDebugLevel(aVersion, aaDebugLevel);
            return(0);
        }
Beispiel #2
0
        private static unsafe int DoMemWrite(IntPtr aPtr, uint aVersion, uint aaMemAddress, char *aaMemData, int aaMemDataLen)
        {
            GCHandle gch = GCHandle.FromIntPtr(aPtr);
            DvServiceLinnCoUkDebug2 self = (DvServiceLinnCoUkDebug2)gch.Target;
            string aMemData = Marshal.PtrToStringAnsi((IntPtr)aaMemData, aaMemDataLen);

            self.MemWrite(aVersion, aaMemAddress, aMemData);
            return(0);
        }