PERWAPI.ClassRef.Read C# (CSharp) Méthode

Read() static private méthode

static private Read ( PEReader buff, TableRow typeRefs, bool resolve ) : void
buff PEReader
typeRefs TableRow
resolve bool
Résultat void
        internal static void Read(PEReader buff, TableRow[] typeRefs, bool resolve)
        {
            for (uint i=0; i < typeRefs.Length; i++) {
                uint resScopeIx = buff.GetCodedIndex(CIx.ResolutionScope);
                string name = buff.GetString();
                string nameSpace = buff.GetString();
                if (buff.CodedTable(CIx.ResolutionScope,resScopeIx) == MDTable.TypeRef)
                    typeRefs[i] = new NestedClassRef(resScopeIx,nameSpace,name);
                else
                    typeRefs[i] = new ClassRef(resScopeIx,nameSpace,name);
                typeRefs[i].Row = i+1;
            }
            if (resolve) {
                for (int i=0; i < typeRefs.Length; i++) {
                    ((ClassRef)typeRefs[i]).ResolveParent(buff,false);
                }
            }
        }