Beispiel #1
0
        public static void Write(IBinaryWriter o, Kernel.Config.ConfigHeader d)
        {
            o.Write(d != null);
            if (d == null)
            {
                return;
            }

            o.Write(d.BodySize);
            ArrayPoli_FieldLayoutSerializer.Write(o, d.Contents);
            o.Write(d.HeaderSize);
        }
Beispiel #2
0
        public static Kernel.Config.ConfigHeader Read(IBinaryReader o, Kernel.Config.ConfigHeader d)
        {
            if (o.ReadBoolean() == false)
            {
                return(null);
            }

            if (d == null)
            {
                d = new Kernel.Config.ConfigHeader();
            }
            d.BodySize   = o.ReadInt32();
            d.Contents   = ArrayPoli_FieldLayoutSerializer.Read(o, d.Contents as Kernel.Config.FieldLayout[]);
            d.HeaderSize = o.ReadInt32();
            return(d);
        }