Esempio n. 1
0
        public int Next(IMDType pType, out ulong pInterfacePtr)
        {
            if (m_curr < m_data.Count)
            {
                pType         = new MDType(m_data[m_curr].Type);
                pInterfacePtr = m_data[m_curr].InterfacePointer;
                m_curr++;
                return(HRESULTS.S_OK);
            }

            pType         = null;
            pInterfacePtr = 0;

            if (m_curr == m_data.Count)
            {
                m_curr++;
                return(HRESULTS.S_FALSE);
            }

            return(HRESULTS.E_FAIL);
        }
Esempio n. 2
0
 public void GetObjectType(ulong addr, out IMDType ppType)
 {
     ppType = new MDType(m_heap.GetObjectType(addr));
 }
Esempio n. 3
0
 void IMDException.GetGCHeapType(out IMDType ppType)
 {
     ppType = new MDType(m_ex.Type);
 }
Esempio n. 4
0
 public void GetType(out IMDType ppType)
 {
     ppType = MDType.Construct(m_field.Type);
 }
Esempio n. 5
0
 public void GetObjectType(ulong addr, out IMDType ppType)
 {
     ppType = new MDType(m_heap.GetObjectType(addr));
 }
Esempio n. 6
0
 void IMDException.GetGCHeapType(out IMDType ppType)
 {
     ppType = new MDType(m_ex.Type);
 }
Esempio n. 7
0
        public int Next(IMDType pType, out ulong pInterfacePtr)
        {
            if (m_curr < m_data.Count)
            {
                pType = new MDType(m_data[m_curr].Type);
                pInterfacePtr = m_data[m_curr].InterfacePointer;
                m_curr++;
                return HRESULTS.S_OK;
            }

            pType = null;
            pInterfacePtr = 0;

            if (m_curr == m_data.Count)
            {
                m_curr++;
                return HRESULTS.S_FALSE;
            }

            return HRESULTS.E_FAIL;
        }