Beispiel #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 GenericArg [gis.Arity];
            for (int i = 0; i < gis.Arity; i++)
            {
                gis.Types [i] = ReadGenericArg(data, start, out start);
            }

            return(gis);
        }