示例#1
0
 public void Read(BinaryReader reader)
 {
     Name       = reader.ReadString();
     Comment    = BindingsGenerator.Read(reader, Comment);
     Value      = BindingsGenerator.Read(reader, Value);
     Attributes = BindingsGenerator.Read(reader, Attributes);
 }
示例#2
0
        public override void Read(BinaryReader reader)
        {
            IsAlias = reader.ReadBoolean();
            Type    = BindingsGenerator.Read(reader, Type);

            base.Read(reader);
        }
示例#3
0
        public override void Read(BinaryReader reader)
        {
            Access         = (AccessLevel)reader.ReadByte();
            UnderlyingType = BindingsGenerator.Read(reader, UnderlyingType);
            Entries        = BindingsGenerator.Read(reader, Entries);

            base.Read(reader);
        }
示例#4
0
 public virtual void Read(BinaryReader reader)
 {
     Name       = reader.ReadString();
     Comment    = BindingsGenerator.Read(reader, Comment);
     IsStatic   = reader.ReadBoolean();
     Access     = (AccessLevel)reader.ReadByte();
     Attributes = BindingsGenerator.Read(reader, Attributes);
 }
示例#5
0
        public override void Read(BinaryReader reader)
        {
            Type   = BindingsGenerator.Read(reader, Type);
            Getter = BindingsGenerator.Read(reader, Getter);
            Setter = BindingsGenerator.Read(reader, Setter);

            base.Read(reader);
        }
示例#6
0
        public override void Read(BinaryReader reader)
        {
            Fields              = BindingsGenerator.Read(reader, Fields);
            Functions           = BindingsGenerator.Read(reader, Functions);
            IsAutoSerialization = reader.ReadBoolean();
            ForceNoPod          = reader.ReadBoolean();

            base.Read(reader);
        }
示例#7
0
        public override void Read(BinaryReader reader)
        {
            Access = (AccessLevel)reader.ReadByte();
            BaseTypeInheritance = (AccessLevel)reader.ReadByte();
            BaseType            = BindingsGenerator.Read(reader, BaseType);
            InterfaceNames      = BindingsGenerator.Read(reader, InterfaceNames);

            base.Read(reader);
        }
示例#8
0
 public void Read(BinaryReader reader)
 {
     Name         = reader.ReadString();
     Type         = BindingsGenerator.Read(reader, Type);
     DefaultValue = BindingsGenerator.Read(reader, DefaultValue);
     Attributes   = BindingsGenerator.Read(reader, Attributes);
     // TODO: convert into flags
     IsRef = reader.ReadBoolean();
     IsOut = reader.ReadBoolean();
 }
示例#9
0
        public override void Read(BinaryReader reader)
        {
            Type = BindingsGenerator.Read(reader, Type);
            // TODO: convert into flags
            IsReadOnly   = reader.ReadBoolean();
            NoArray      = reader.ReadBoolean();
            DefaultValue = BindingsGenerator.Read(reader, DefaultValue);

            base.Read(reader);
        }
示例#10
0
        public override void Read(BinaryReader reader)
        {
            ReturnType = BindingsGenerator.Read(reader, ReturnType);
            Parameters = BindingsGenerator.Read(reader, Parameters);
            // TODO: convert into flags
            IsVirtual = reader.ReadBoolean();
            IsConst   = reader.ReadBoolean();
            NoProxy   = reader.ReadBoolean();

            base.Read(reader);
        }
示例#11
0
        public override void Read(BinaryReader reader)
        {
            Access = (AccessLevel)reader.ReadByte();
            BaseTypeInheritance = (AccessLevel)reader.ReadByte();
            IsTemplate          = reader.ReadBoolean();
            BaseType            = BindingsGenerator.Read(reader, BaseType);
            Inheritance         = BindingsGenerator.Read(reader, Inheritance);
            Functions           = BindingsGenerator.Read(reader, Functions);

            base.Read(reader);
        }
示例#12
0
 public void Read(BinaryReader reader)
 {
     Type = BindingsGenerator.Read(reader, Type);
     // TODO: convert into flags
     IsConst     = reader.ReadBoolean();
     IsRef       = reader.ReadBoolean();
     IsPtr       = reader.ReadBoolean();
     IsArray     = reader.ReadBoolean();
     IsBitField  = reader.ReadBoolean();
     ArraySize   = reader.ReadInt32();
     BitSize     = reader.ReadInt32();
     GenericArgs = BindingsGenerator.Read(reader, GenericArgs);
 }
示例#13
0
        public override void Read(BinaryReader reader)
        {
            if (reader.ReadString() != Module.Name ||
                reader.ReadString() != Module.FilePath ||
                BindingsGenerator.Read(reader, Module.BinaryModuleName) != Module.BinaryModuleName ||
                reader.ReadBoolean() != Module.BuildNativeCode ||
                reader.ReadBoolean() != Module.BuildCSharp
                )
            {
                throw new Exception();
            }

            base.Read(reader);
        }
示例#14
0
        public override void Read(BinaryReader reader)
        {
            // TODO: convert into flags
            IsStatic            = reader.ReadBoolean();
            IsSealed            = reader.ReadBoolean();
            IsAbstract          = reader.ReadBoolean();
            IsAutoSerialization = reader.ReadBoolean();
            NoSpawn             = reader.ReadBoolean();
            NoConstructor       = reader.ReadBoolean();
            Properties          = BindingsGenerator.Read(reader, Properties);
            Fields = BindingsGenerator.Read(reader, Fields);
            Events = BindingsGenerator.Read(reader, Events);

            base.Read(reader);
        }
示例#15
0
        public virtual void Read(BinaryReader reader)
        {
            NativeName = BindingsGenerator.Read(reader, NativeName);
            Name       = BindingsGenerator.Read(reader, Name);
            Namespace  = BindingsGenerator.Read(reader, Namespace);
            Attributes = BindingsGenerator.Read(reader, Attributes);
            Comment    = BindingsGenerator.Read(reader, Comment);
            IsInBuild  = reader.ReadBoolean();
            Children   = BindingsGenerator.Read(reader, Children);

            // Fix hierarchy
            for (int i = 0; i < Children.Count; i++)
            {
                var child = Children[i];
                child.Parent = this;
            }
        }
示例#16
0
        public override void Read(BinaryReader reader)
        {
            Functions = BindingsGenerator.Read(reader, Functions);

            base.Read(reader);
        }