Beispiel #1
0
        public static RTClass Deserialize()
        {
            var @class = new RTClass
            {
                name      = binary_reader.ReadString(),
                atttibute = (ElementAtttibute)binary_reader.ReadInt32()
            };
            var count = binary_reader.ReadInt32();

            for (var i = 0; i < count; i++)
            {
                @class.methods.Add(RTMethod.Deserialize());
            }
            return(@class);
        }
Beispiel #2
0
        public static RTMethod Deserialize()
        {
            var method = new RTMethod
            {
                name      = binary_reader.ReadString(),
                atttibute = (ElementAtttibute)binary_reader.ReadInt32()
            };
            var count = binary_reader.ReadInt32();

            for (var i = 0; i < count; i++)
            {
                var iset = (ISet)binary_reader.ReadInt32();
                var val  = binary_reader.ReadString();
                method.AddCode(iset, val == "" ? null : val);
            }

            return(method);
        }