Ejemplo n.º 1
0
 // Token: 0x060000B0 RID: 176 RVA: 0x00003B0F File Offset: 0x00001D0F
 public int Add(ulong dwCount, out IDebugMemoryContext2 newAddress)
 {
     newAddress = new AD7MemoryAddress(this.m_engine, (ulong)((uint)dwCount) + this.m_address);
     return(0);
 }
Ejemplo n.º 2
0
        // Token: 0x060000B1 RID: 177 RVA: 0x00003B2C File Offset: 0x00001D2C
        public int Compare(enum_CONTEXT_COMPARE contextCompare, IDebugMemoryContext2[] compareToItems, uint compareToLength, out uint foundIndex)
        {
            foundIndex = uint.MaxValue;
            int result;

            try
            {
                for (uint num = 0U; num < compareToLength; num += 1U)
                {
                    AD7MemoryAddress ad7MemoryAddress = compareToItems[(int)num] as AD7MemoryAddress;
                    if (ad7MemoryAddress != null && this.m_engine == ad7MemoryAddress.m_engine)
                    {
                        bool flag;
                        switch (contextCompare)
                        {
                        case enum_CONTEXT_COMPARE.CONTEXT_EQUAL:
                            flag = (this.m_address == ad7MemoryAddress.m_address);
                            break;

                        case enum_CONTEXT_COMPARE.CONTEXT_LESS_THAN:
                            flag = (this.m_address < ad7MemoryAddress.m_address);
                            break;

                        case enum_CONTEXT_COMPARE.CONTEXT_GREATER_THAN:
                            flag = (this.m_address > ad7MemoryAddress.m_address);
                            break;

                        case enum_CONTEXT_COMPARE.CONTEXT_LESS_THAN_OR_EQUAL:
                            flag = (this.m_address <= ad7MemoryAddress.m_address);
                            break;

                        case enum_CONTEXT_COMPARE.CONTEXT_GREATER_THAN_OR_EQUAL:
                            flag = (this.m_address >= ad7MemoryAddress.m_address);
                            break;

                        case enum_CONTEXT_COMPARE.CONTEXT_SAME_SCOPE:
                        case enum_CONTEXT_COMPARE.CONTEXT_SAME_FUNCTION:
                            flag = (this.m_address == ad7MemoryAddress.m_address);
                            break;

                        case enum_CONTEXT_COMPARE.CONTEXT_SAME_MODULE:
                            goto IL_C9;

                        case enum_CONTEXT_COMPARE.CONTEXT_SAME_PROCESS:
                            flag = true;
                            break;

                        default:
                            goto IL_C9;
                        }
                        if (flag)
                        {
                            foundIndex = num;
                            return(0);
                        }
                        goto IL_DC;
IL_C9:
                        return(-2147467263);
                    }
                    IL_DC :;
                }
                result = 1;
            }
            catch (Exception e)
            {
                result = Utils.UnexpectedException(e);
            }
            return(result);
        }
Ejemplo n.º 3
0
 // Token: 0x060000B4 RID: 180 RVA: 0x00003CD0 File Offset: 0x00001ED0
 public int Subtract(ulong dwCount, out IDebugMemoryContext2 ppMemCxt)
 {
     ppMemCxt = new AD7MemoryAddress(this.m_engine, (ulong)((uint)dwCount) - this.m_address);
     return(0);
 }