public static void Write(IBinaryWriter o, Kernel.Config.FieldLayoutOfConst d)
        {
            o.Write(d != null);
            if (d == null)
            {
                return;
            }

            o.Write((int)d.Mode);
            o.Write(d.Offset);
            o.Write(d.Size);
        }
        public static Kernel.Config.FieldLayoutOfConst Read(IBinaryReader o, Kernel.Config.FieldLayoutOfConst d)
        {
            if (o.ReadBoolean() == false)
            {
                return(null);
            }

            if (d == null)
            {
                d = new Kernel.Config.FieldLayoutOfConst();
            }
            d.Mode   = (Kernel.Config.ConfigFieldInfo.Mode)o.ReadInt32();
            d.Offset = o.ReadInt32();
            d.Size   = o.ReadInt32();
            return(d);
        }