コード例 #1
0
        public static Pointer GetPreviousStackFrame(Pointer stackFrame)
        {
            if (stackFrame < new Pointer(0x1000))
            {
                return(Pointer.Zero);
            }

            return(stackFrame.LoadPointer());
        }
コード例 #2
0
        public static Pointer GetReturnAddressFromStackFrame(Pointer stackframe)
        {
            if (stackframe < new Pointer(0x1000))
            {
                return(Pointer.Zero);
            }

            return(stackframe.LoadPointer(Pointer.Size));
        }
コード例 #3
0
 public static Pointer GetTypeDefinition(Pointer obj)
 {
     return(obj.LoadPointer(-Pointer.Size));
 }