Ejemplo n.º 1
0
 void Write(GenericInstSignature gis)
 {
     Write(gis.Arity);
     for (int i = 0; i < gis.Arity; i++)
     {
         Write(gis.Types [i]);
     }
 }
        GenericInstSignature ReadGenericInstSignature(byte [] data, int pos, out int start)
        {
            start = pos;
            GenericInstSignature gis = new GenericInstSignature();

            gis.Arity = Utilities.ReadCompressedInteger(data, start, out start);
            gis.Types = new SigType [gis.Arity];
            for (int i = 0; i < gis.Arity; i++)
            {
                gis.Types [i] = this.ReadType(data, start, out start);
            }

            return(gis);
        }
Ejemplo n.º 3
0
		void Write (GenericInstSignature gis)
		{
			Write (gis.Arity);
			for (int i = 0; i < gis.Arity; i++)
				Write (gis.Types [i]);
		}
Ejemplo n.º 4
0
        public MethodSpec GetMethodSpecSig(GenericInstanceMethod gim)
        {
            GenericInstSignature gis = new GenericInstSignature ();
            gis.Arity = gim.GenericArguments.Count;
            gis.Types = new SigType [gis.Arity];
            for (int i = 0; i < gis.Arity; i++)
                gis.Types [i] = GetSigType (gim.GenericArguments [i]);

            return new MethodSpec (gis);
        }
Ejemplo n.º 5
0
        GenericInstSignature ReadGenericInstSignature(byte [] data, int pos, out int start)
        {
            start = pos;
            GenericInstSignature gis = new GenericInstSignature ();
            gis.Arity = Utilities.ReadCompressedInteger (data, start, out start);
            gis.Types = new GenericArg [gis.Arity];
            for (int i = 0; i < gis.Arity; i++)
                gis.Types [i] = ReadGenericArg (data, start, out start);

            return gis;
        }