public void Read(SignatureReader rdr)
        {
            f = (MethodFlags)rdr.ReadByte();
            if ((f & MethodFlags.Generic) == MethodFlags.Generic)
            {
                gc = rdr.ReadCompressedInt();
            }
            int c = rdr.ReadCompressedInt();

            rt = new RetTypeElement();
            rt.Read(rdr);
            ps = new ParamCollection();
            ps.Read(rdr, c);
        }
Exemple #2
0
 public void Read(SignatureReader rdr)
 {
     r = rdr.ReadCompressedInt();
     s = new int[rdr.ReadCompressedInt()];
     for (int i = 0; i < s.Length; i++)
     {
         s[i] = rdr.ReadCompressedInt();
     }
     lb = new int[rdr.ReadCompressedInt()];
     for (int i = 0; i < s.Length; i++)
     {
         lb[i] = rdr.ReadCompressedInt();
     }
 }
        public void Read(SignatureReader rdr)
        {
            byte p = rdr.ReadByte();

            if (p == 0x8)       //Normal  PROPERTY prolog
            {
                ht = false;
            }
            else if (p == 0x28) //HASTHIS PROPERTY prolog
            {
                ht = true;
            }
            else
            {
                throw new InvalidOperationException();
            }

            int pc = rdr.ReadCompressedInt();

            mods = new CustomModifierCollection();
            mods.Read(rdr);
            t  = TypeElement.ReadType(rdr);
            ps = new ParamCollection();
            ps.Read(rdr, pc);
        }
Exemple #4
0
        public void Read(SignatureReader rdr)
        {
            int c = rdr.ReadCompressedInt();

            for (int i = 0; i < c; i++)
            {
                this.Add(TypeElement.ReadType(rdr));
            }
        }
Exemple #5
0
        public void Read(SignatureReader rdr)
        {
            int c = rdr.ReadCompressedInt();

            for (int i = 0; i < c; i++)
            {
                LocalVar v = new LocalVar();
                v.Read(rdr);
                Items.Add(v);
            }
        }