Ejemplo 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);
        }
Ejemplo n.º 2
0
 public void GetObjectType(ulong addr, out IMDType ppType)
 {
     ppType = new MDType(m_heap.GetObjectType(addr));
 }
Ejemplo n.º 3
0
 void IMDException.GetGCHeapType(out IMDType ppType)
 {
     ppType = new MDType(m_ex.Type);
 }
Ejemplo n.º 4
0
 public void GetType(out IMDType ppType)
 {
     ppType = MDType.Construct(m_field.Type);
 }
Ejemplo n.º 5
0
 public void GetObjectType(ulong addr, out IMDType ppType)
 {
     ppType = new MDType(m_heap.GetObjectType(addr));
 }
Ejemplo n.º 6
0
 void IMDException.GetGCHeapType(out IMDType ppType)
 {
     ppType = new MDType(m_ex.Type);
 }
Ejemplo 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;
        }