示例#1
0
        internal static PexObjectNamedFunction Create(PexParseMeta parse)
        {
            var ret = new PexObjectNamedFunction();

            ret.FunctionName = parse.ReadString();
            ret.Function     = PexObjectFunction.Create(parse);
            return(ret);
        }
示例#2
0
        internal static PexObjectState Create(PexParseMeta parse)
        {
            var ret = new PexObjectState();

            ret.Name = parse.ReadString();

            var functions = parse.Reader.ReadUInt16();

            for (var i = 0; i < functions; i++)
            {
                var namedFunction = PexObjectNamedFunction.Create(parse);
                ret.Functions.Add(namedFunction);
            }
            return(ret);
        }