/** <inheritDoc /> */
        public void WritePortable(IPortableWriter writer)
        {
            var writer0 = (PortableWriterImpl)writer.RawWriter();

            writer0.DetachNext();
            PortableUtils.WritePortableOrSerializable(writer0, _action);
        }
        /** {@inheritDoc} */
        public void WritePortable(IPortableWriter writer)
        {
            IPortableRawWriter rawWriter = writer.RawWriter();

            rawWriter.WriteObject(PortableCfg);

            rawWriter.WriteGenericCollection(Assemblies);
        }
Esempio n. 3
0
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteLong("Id", Id);
     writer.WriteUTF("Text0", Text0);
     writer.WriteUTF("Text1", Text1);
     writer.WriteUTF("Text2", Text2);
     writer.WriteUTF("Text3", Text3);
     writer.WriteUTF("Text4", Text4);
 }
        /// <summary>
        /// Write portalbe object.
        /// </summary>
        /// <param name="obj">Object.</param>
        /// <param name="writer">Portable writer.</param>
        /// <exception cref="PortableException">Type is not registered in serializer:  + type.Name</exception>
        public void WritePortable(object obj, IPortableWriter writer)
        {
            var portableMarshalAware = obj as IPortableMarshalAware;

            if (portableMarshalAware != null)
                portableMarshalAware.WritePortable(writer);
            else
                GetDescriptor(obj).Write(obj, writer);
        }
        public void WritePortable(IPortableWriter writer)
        {
            bool hasData = (Data != null);

            if (hasData)
            {
                writer.WriteUTF("data", Data);
            }
            writer.WriteBoolean("_has__data", hasData);
        }
        /// <summary>
        /// Writes this object to the given writer.
        /// </summary>
        /// <param name="writer">Writer.</param>
        public void WritePortable(IPortableWriter writer)
        {
            PortableWriterImpl rawWriter = (PortableWriterImpl)writer.RawWriter();

            PortableUtils.WritePortableOrSerializable(rawWriter, _keyTyp);
            PortableUtils.WritePortableOrSerializable(rawWriter, _valTyp);
            PortableUtils.WritePortableOrSerializable(rawWriter, _filter);

            rawWriter.WriteBoolean(_keepPortable);
        }
 public override void WritePortable(IPortableWriter writer)
 {
     writer.WriteLong("l", l);
     var output = writer.GetRawDataOutput();
     output.WriteInt(k);
     output.WriteUTF(s);
     writer.WriteCharArray("c", c);
     output.WriteObject(sds);
     writer.WritePortable("p", p);
 }
Esempio n. 8
0
        /** <inheritDoc /> */
        public void WritePortable(IPortableWriter writer)
        {
            PortableWriterImpl writer0 = (PortableWriterImpl)writer.RawWriter();

            writer0.DetachNext();
            PortableUtils.WritePortableOrSerializable(writer0, _clo);

            writer0.DetachNext();
            PortableUtils.WritePortableOrSerializable(writer0, _arg);
        }
Esempio n. 9
0
            /** <inheritdoc /> */
            public void WritePortable(IPortableWriter writer)
            {
                writer.WriteString("Prop", Prop);
                writer.WriteBoolean("ThrowOnRead", ThrowOnRead);

                if (ThrowOnWrite)
                {
                    throw new Exception("Expected exception in TestPortableClass.WritePortable");
                }
            }
        public virtual void WritePortable(IPortableWriter writer)
        {
            writer.WriteLong("l", l);
            writer.WriteCharArray("c", c);
            writer.WritePortable("p", p);
            var output = writer.GetRawDataOutput();

            output.Write(k);
            output.Write(s);
            output.WriteObject(sds);
        }
Esempio n. 11
0
        /// <summary>
        /// Finish marshal session.
        /// </summary>
        /// <param name="writer">Writer.</param>
        /// <returns>Dictionary with metadata.</returns>
        public void FinishMarshal(IPortableWriter writer)
        {
            var meta = ((PortableWriterImpl)writer).Metadata();

            var ignite = Ignite;

            if (ignite != null && meta != null && meta.Count > 0)
            {
                ignite.PutMetadata(meta);
            }
        }
Esempio n. 12
0
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteByteArray("b", bb);
     writer.WriteCharArray("c", cc);
     writer.WriteShortArray("s", ss);
     writer.WriteIntArray("i", ii);
     writer.WriteLongArray("l", ll);
     writer.WriteFloatArray("f", ff);
     writer.WriteDoubleArray("d", dd);
     writer.WritePortableArray("nn", nn);
 }
        public override void WritePortable(IPortableWriter writer)
        {
            writer.WriteLong("l", l);
            var output = writer.GetRawDataOutput();

            output.WriteInt(k);
            output.WriteUTF(s);
            writer.WriteCharArray("c", c);
            output.WriteObject(sds);
            writer.WritePortable("p", p);
        }
 /// <exception cref="System.IO.IOException"/>
 public virtual void WritePortable(IPortableWriter writer)
 {
     writer.WriteByte("byte", aByte);
     writer.WriteBoolean("boolean", aBoolean);
     writer.WriteChar("char", character);
     writer.WriteShort("short", aShort);
     writer.WriteInt("int", integer);
     writer.WriteLong("long", aLong);
     writer.WriteFloat("float", aFloat);
     writer.WriteDouble("double", aDouble);
     writer.WriteUTF("string", aString);
 }
        /** {@inheritDoc} */
        public void WritePortable(IPortableWriter writer)
        {
            IPortableRawWriter rawWriter = writer.RawWriter();

            rawWriter.WriteGenericCollection(TypeConfigurations);
            rawWriter.WriteGenericCollection(Types);
            rawWriter.WriteString(DefaultNameMapper);
            rawWriter.WriteString(DefaultIdMapper);
            rawWriter.WriteString(DefaultSerializer);
            rawWriter.WriteBoolean(DefaultMetadataEnabled);
            rawWriter.WriteBoolean(DefaultKeepDeserialized);
        }
 /// <exception cref="System.IO.IOException"/>
 public virtual void WritePortable(IPortableWriter writer)
 {
     writer.WriteByte("byte", aByte);
     writer.WriteBoolean("boolean", aBoolean);
     writer.WriteChar("char", character);
     writer.WriteShort("short", aShort);
     writer.WriteInt("int", integer);
     writer.WriteLong("long", aLong);
     writer.WriteFloat("float", aFloat);
     writer.WriteDouble("double", aDouble);
     writer.WriteUTF("string", aString);
 }
        /** {@inheritDoc} */
        public void WritePortable(IPortableWriter writer)
        {
            IPortableRawWriter rawWriter = writer.RawWriter();

            rawWriter.WriteString(AssemblyName);
            rawWriter.WriteString(TypeName);
            rawWriter.WriteString(NameMapper);
            rawWriter.WriteString(IdMapper);
            rawWriter.WriteString(Serializer);
            rawWriter.WriteString(AffinityKeyFieldName);
            rawWriter.WriteObject(MetadataEnabled);
            rawWriter.WriteObject(KeepDeserialized);
        }
        /// <summary>
        /// Write portalbe object.
        /// </summary>
        /// <param name="obj">Object.</param>
        /// <param name="writer">Portable writer.</param>
        /// <exception cref="PortableException">Type is not registered in serializer:  + type.Name</exception>
        public void WritePortable(object obj, IPortableWriter writer)
        {
            var portableMarshalAware = obj as IPortableMarshalAware;

            if (portableMarshalAware != null)
            {
                portableMarshalAware.WritePortable(writer);
            }
            else
            {
                GetDescriptor(obj).Write(obj, writer);
            }
        }
Esempio n. 19
0
        /** <inheritdoc /> */
        public void WritePortable(IPortableWriter writer)
        {
            var w = writer.RawWriter();

            var writeAware = _rcv as IPortableWriteAware;

            if (writeAware != null)
            {
                writeAware.WritePortable(writer);
            }
            else
            {
                w.WriteByte(RcvNormal);
                PortableUtils.WritePortableOrSerializable((PortableWriterImpl)writer, _rcv);
            }
        }
Esempio n. 20
0
 public void WritePortable(IPortableWriter writer)
 {
     try
     {
         writer.WriteByteArray("id", Id.ToByteArray());
         writer.WriteUTF("name", Name);
         writer.WriteUTF("email", Email);
         writer.WriteUTF("phone", Phone);
         writer.WriteUTF("address", Address);
         writer.WriteByteArray("pet_id", PetID.ToByteArray());
     }
     catch (Exception e)
     {
         Console.WriteLine("Hazelcast: write failed.");
         Console.WriteLine(e.Message);
     }
 }
        /** <inheritDoc /> */
        public void WritePortable(IPortableWriter writer)
        {
            var writer0 = (PortableWriterImpl) writer.RawWriter();

            if (writer0.IsPortable(_err))
            {
                writer0.WriteBoolean(true);
                writer0.WriteObject(_err);
            }
            else
            {
                writer0.WriteBoolean(false);

                BinaryFormatter bf = new BinaryFormatter();

                bf.Serialize(new PortableStreamAdapter(writer0.Stream), _err);
            }
        }
Esempio n. 22
0
        /** <inheritDoc /> */
        public void WritePortable(IPortableWriter writer)
        {
            var writer0 = (PortableWriterImpl)writer.RawWriter();

            if (writer0.IsPortable(_err))
            {
                writer0.WriteBoolean(true);
                writer0.WriteObject(_err);
            }
            else
            {
                writer0.WriteBoolean(false);

                BinaryFormatter bf = new BinaryFormatter();

                bf.Serialize(new PortableStreamAdapter(writer0.Stream), _err);
            }
        }
Esempio n. 23
0
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteByte("b", b);
     writer.WriteBoolean("bool", bo);
     writer.WriteChar("c", c);
     writer.WriteShort("s", s);
     writer.WriteInt("i", i);
     writer.WriteLong("l", l);
     writer.WriteFloat("f", f);
     writer.WriteDouble("d", d);
     writer.WriteUTF("str", str);
     if (p != null)
     {
         writer.WritePortable("p", p);
     }
     else
     {
         writer.WriteNullPortable("p", TestSerializationConstants.PORTABLE_FACTORY_ID,
                                  TestSerializationConstants.INNER_PORTABLE);
     }
 }
Esempio n. 24
0
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteBoolean("bool", Bool);
     writer.WriteBooleanArray("boolArray", BoolArray);
     writer.WriteByte("byte", Byte);
     writer.WriteByteArray("byteArray", ByteArray);
     writer.WriteChar("char", Char);
     writer.WriteCharArray("charArray", CharArray);
     writer.WriteShort("short", Short);
     writer.WriteShortArray("shortArray", ShortArray);
     writer.WriteInt("int", Int);
     writer.WriteIntArray("intArray", IntArray);
     writer.WriteLong("long", Long);
     writer.WriteLongArray("longArray", LongArray);
     writer.WriteFloat("float", Float);
     writer.WriteFloatArray("floatArray", FloatArray);
     writer.WriteDouble("double", Double);
     writer.WriteDoubleArray("doubleArray", DoubleArray);
     writer.WriteUTF("string", String);
     writer.WriteUTFArray("stringArray", StringArray);
 }
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteBoolean("bool", Bool);
     writer.WriteBooleanArray("boolArray", BoolArray);
     writer.WriteByte("byte", Byte);
     writer.WriteByteArray("byteArray", ByteArray);
     writer.WriteChar("char", Char);
     writer.WriteCharArray("charArray", CharArray);
     writer.WriteShort("short", Short);
     writer.WriteShortArray("shortArray", ShortArray);
     writer.WriteInt("int", Int);
     writer.WriteIntArray("intArray", IntArray);
     writer.WriteLong("long", Long);
     writer.WriteLongArray("longArray", LongArray);
     writer.WriteFloat("float", Float);
     writer.WriteFloatArray("floatArray", FloatArray);
     writer.WriteDouble("double", Double);
     writer.WriteDoubleArray("doubleArray", DoubleArray);
     writer.WriteUTF("string", String);
     writer.WriteUTFArray("stringArray", StringArray);
 }
Esempio n. 26
0
 /// <exception cref="System.IO.IOException"/>
 public virtual void WritePortable(IPortableWriter writer)
 {
     writer.WriteLong("timestamp", timestamp);
 }
Esempio n. 27
0
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteString("shortString", shortString);
 }
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteObjectArray("a", GuidArr);
     writer.WriteObjectArray("b", NGuidArr);
     writer.WriteObjectArray("c", DateArr);
     writer.WriteObjectArray("d", NDateArr);
 }
            public unsafe void WritePortable(IPortableWriter writer)
            {
                IPortableRawWriter rawWriter = writer.RawWriter();

                rawWriter.WriteBoolean(PBool);
                rawWriter.WriteByte(PByte);
                rawWriter.WriteShort(PShort);
                rawWriter.WriteInt(PInt);
                rawWriter.WriteLong(PLong);
                rawWriter.WriteChar(PChar);
                rawWriter.WriteFloat(PFloat);
                rawWriter.WriteDouble(PDouble);

                sbyte sByte = PSbyte;
                ushort uShort = PUshort;
                uint uInt = PUint;
                ulong uLong = PUlong;

                rawWriter.WriteByte(*(byte*)&sByte);
                rawWriter.WriteShort(*(short*)&uShort);
                rawWriter.WriteInt(*(int*)&uInt);
                rawWriter.WriteLong(*(long*)&uLong);

                rawWriter.WriteString(PString);
                rawWriter.WriteGuid(PGuid);
                rawWriter.WriteGuid(PnGuid);
            }
 /// <exception cref="System.IO.IOException" />
 public virtual void WritePortable(IPortableWriter writer)
 {
     writer.WriteInt("no", no);
     writer.WriteString("street", street);
 }
            /** <inheritdoc /> */
            virtual public void WritePortable(IPortableWriter writer)
            {
                writer.WriteString("before", Before);
                writer.WriteObject("outer", Outer);
                writer.WriteString("after", After);

                IPortableRawWriter rawWriter = writer.RawWriter();

                rawWriter.WriteString(RawBefore);
                rawWriter.WriteObject(RawOuter);
                rawWriter.WriteString(RawAfter);
            }
Esempio n. 32
0
 void IPortable.WritePortable(IPortableWriter writer)
 {
     writer.WritePortable("header", _header);
     writer.WriteIntArray("enabled", _enabled);
     writer.WriteIntArray("disabled", _disabled);
 }
 /** <inheritdoc /> */
 public void WritePortable(object obj, IPortableWriter writer)
 {
     ((T)obj).WritePortable(writer);
 }
            public unsafe void WritePortable(object obj, IPortableWriter writer)
            {
                PrimitiveFieldType obj0 = (PrimitiveFieldType)obj;

                writer.WriteBoolean("bool", obj0.PBool);
                writer.WriteByte("byte", obj0.PByte);
                writer.WriteShort("short", obj0.PShort);
                writer.WriteInt("int", obj0.PInt);
                writer.WriteLong("long", obj0.PLong);
                writer.WriteChar("char", obj0.PChar);
                writer.WriteFloat("float", obj0.PFloat);
                writer.WriteDouble("double", obj0.PDouble);

                sbyte sByte = obj0.PSbyte;
                ushort uShort = obj0.PUshort;
                uint uInt = obj0.PUint;
                ulong uLong = obj0.PUlong;

                writer.WriteByte("sbyte", *(byte*)&sByte);
                writer.WriteShort("ushort", *(short*)&uShort);
                writer.WriteInt("uint", *(int*)&uInt);
                writer.WriteLong("ulong", *(long*)&uLong);

                writer.WriteString("string", obj0.PString);
                writer.WriteGuid("guid", obj0.PGuid);
                writer.WriteGuid("nguid", obj0.PnGuid);
            }
Esempio n. 35
0
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteUTF("name", name);
 }
            /** <inheritDoc /> */
            public void WritePortable(IPortableWriter writer)
            {
                writer.WriteDecimal("val", Val);
                writer.WriteDecimalArray("valArr", ValArr);

                IPortableRawWriter rawWriter = writer.RawWriter();

                rawWriter.WriteDecimal(RawVal);
                rawWriter.WriteDecimalArray(RawValArr);
            }
            /** <inheritdoc /> */
            override public void WritePortable(IPortableWriter writer)
            {
                PortableWriterImpl writer0 = (PortableWriterImpl)writer;

                writer.WriteString("before", Before);

                writer0.DetachNext();
                writer.WriteObject("inner", Inner);

                writer.WriteString("after", After);

                IPortableRawWriter rawWriter = writer.RawWriter();

                rawWriter.WriteString(RawBefore);

                writer0.DetachNext();
                rawWriter.WriteObject(RawInner);

                rawWriter.WriteString(RawAfter);
            }
Esempio n. 38
0
 public void WritePortable(IPortableWriter writer)
 {
     writer.WritePortableArray("list", portables);
 }
 public void WritePortable(IPortableWriter writer)
 {
     writer.WritePortableArray("list", portables);
 }
            public unsafe void WritePortable(object obj, IPortableWriter writer)
            {
                PrimitiveFieldType obj0 = (PrimitiveFieldType)obj;

                IPortableRawWriter rawWriter = writer.RawWriter();

                rawWriter.WriteBoolean(obj0.PBool);
                rawWriter.WriteByte(obj0.PByte);
                rawWriter.WriteShort( obj0.PShort);
                rawWriter.WriteInt( obj0.PInt);
                rawWriter.WriteLong( obj0.PLong);
                rawWriter.WriteChar(obj0.PChar);
                rawWriter.WriteFloat(obj0.PFloat);
                rawWriter.WriteDouble( obj0.PDouble);

                sbyte sByte = obj0.PSbyte;
                ushort uShort = obj0.PUshort;
                uint uInt = obj0.PUint;
                ulong uLong = obj0.PUlong;

                rawWriter.WriteByte(*(byte*)&sByte);
                rawWriter.WriteShort(*(short*)&uShort);
                rawWriter.WriteInt(*(int*)&uInt);
                rawWriter.WriteLong(*(long*)&uLong);

                rawWriter.WriteString(obj0.PString);
                rawWriter.WriteGuid(obj0.PGuid);
                rawWriter.WriteGuid(obj0.PnGuid);
            }
Esempio n. 41
0
 void IPortable.WritePortable(IPortableWriter writer)
 {
     writer.WriteLong("handle", _handle);
 }
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteUTF("shortString", shortString);
 }
Esempio n. 43
0
 void IPortable.WritePortable(IPortableWriter writer)
 {
     writer.WritePortable("header", _header);
     writer.WriteIntArray("enabled", _enabled);
     writer.WriteIntArray("disabled", _disabled);
 }
Esempio n. 44
0
 public virtual void WritePortable(IPortableWriter writer)
 {
     writer.WriteUTF("name", name);
     writer.WriteInt("myint", k);
 }
 /// <exception cref="System.IO.IOException" />
 public virtual void WritePortable(IPortableWriter writer)
 {
     writer.WriteLong("height", height);
     writer.WriteInt("age", age);
     writer.WriteUTF("name", name);
     writer.WritePortable("address", address);
 }
            public unsafe void WritePortable(IPortableWriter writer)
            {
                writer.WriteBoolean("bool", PBool);
                writer.WriteByte("byte", PByte);
                writer.WriteShort("short", PShort);
                writer.WriteInt("int", PInt);
                writer.WriteLong("long", PLong);
                writer.WriteChar("char", PChar);
                writer.WriteFloat("float", PFloat);
                writer.WriteDouble("double", PDouble);

                sbyte sByte = PSbyte;
                ushort uShort = PUshort;
                uint uInt = PUint;
                ulong uLong = PUlong;

                writer.WriteByte("sbyte", *(byte*)&sByte);
                writer.WriteShort("ushort", *(short*)&uShort);
                writer.WriteInt("uint", *(int*)&uInt);
                writer.WriteLong("ulong", *(long*)&uLong);

                writer.WriteString("string", PString);
                writer.WriteGuid("guid", PGuid);
                writer.WriteGuid("nguid", PnGuid);
            }
Esempio n. 47
0
 /** <ineritdoc /> */
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteString("name", Name);
     writer.WriteString("address", Address);
     writer.WriteInt("age", Age);
 }
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteByteArray("b", bb);
     writer.WriteCharArray("c", cc);
     writer.WriteShortArray("s", ss);
     writer.WriteIntArray("i", ii);
     writer.WriteLongArray("l", ll);
     writer.WriteFloatArray("f", ff);
     writer.WriteDoubleArray("d", dd);
     writer.WritePortableArray("nn", nn);
 }
Esempio n. 49
0
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteInt("id", Id);
     writer.WriteUTF("name", Name);
     writer.WriteLong("lastOrder", LastOrder.ToFileTimeUtc());
 }
 public virtual void WritePortable(IPortableWriter writer)
 {
     writer.WriteUTF("name", name);
     writer.WriteInt("myint", k);
 }
 /// <exception cref="System.IO.IOException"/>
 public virtual void WritePortable(IPortableWriter writer)
 {
     writer.WriteLong("timestamp", timestamp);
 }
 /** <inheritDoc /> */
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteInt("a", A);
     writer.RawWriter().WriteInt(B);
 }
            /** <inheritDoc /> */
            public void WritePortable(IPortableWriter writer)
            {
                writer.WriteDate("loc", Loc);
                writer.WriteDate("utc", Utc);
                writer.WriteDate("locNull", LocNull);
                writer.WriteDate("utcNull", UtcNull);
                writer.WriteDateArray("locArr", LocArr);
                writer.WriteDateArray("utcArr", UtcArr);

                IPortableRawWriter rawWriter = writer.RawWriter();

                rawWriter.WriteDate(LocRaw);
                rawWriter.WriteDate(UtcRaw);
                rawWriter.WriteDate(LocNullRaw);
                rawWriter.WriteDate(UtcNullRaw);
                rawWriter.WriteDateArray(LocArrRaw);
                rawWriter.WriteDateArray(UtcArrRaw);
            }
 /// <exception cref="System.IO.IOException" />
 public virtual void WritePortable(IPortableWriter writer)
 {
     writer.WriteInt("no", no);
     writer.WriteUTF("street", street);
 }
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteByte("b", b);
     writer.WriteBoolean("bool", bo);
     writer.WriteChar("c", c);
     writer.WriteShort("s", s);
     writer.WriteInt("i", i);
     writer.WriteLong("l", l);
     writer.WriteFloat("f", f);
     writer.WriteDouble("d", d);
     writer.WriteUTF("str", str);
     if (p != null)
     {
         writer.WritePortable("p", p);
     }
     else
     {
         writer.WriteNullPortable("p", TestSerializationConstants.PORTABLE_FACTORY_ID,
             TestSerializationConstants.INNER_PORTABLE);
     }
 }
        /** {@inheritDoc} */
        public void WritePortable(IPortableWriter writer)
        {
            IPortableRawWriter rawWriter = writer.RawWriter();

            rawWriter.WriteGenericCollection(TypeConfigurations);
            rawWriter.WriteGenericCollection(Types);
            rawWriter.WriteString(DefaultNameMapper);
            rawWriter.WriteString(DefaultIdMapper);
            rawWriter.WriteString(DefaultSerializer);
            rawWriter.WriteBoolean(DefaultMetadataEnabled);
            rawWriter.WriteBoolean(DefaultKeepDeserialized);
        }
        public void WritePortable(IPortableWriter writer)
        {
            var output = writer.GetRawDataOutput();

            output.WriteObject(_object);
        }
Esempio n. 58
0
        public void WritePortable(IPortableWriter writer)
        {
            writer.WriteUTF("f0", model_body);
            writer.WriteUTF("f1", model_engine_position);
            writer.WriteInt("f2", model_engine_cc);
            writer.WriteInt("f3", model_engine_cyl);
            writer.WriteUTF("f4", model_engine_type);

            writer.WriteInt("f5", model_engine_valves_per_cyl);
            writer.WriteInt("f6", model_engine_power_ps);
            writer.WriteInt("f7", model_engine_power_rpm);
            writer.WriteInt("f8", model_engine_torque_nm);
            writer.WriteInt("f9", model_engine_torque_rpm);
            writer.WriteInt("f10", model_engine_bore_mm);
            writer.WriteInt("f11", model_engine_stroke_mm);
            writer.WriteUTF("f12", model_engine_compression);
            writer.WriteUTF("f13", model_engine_fuel);

            writer.WriteInt("f14", model_top_speed_kph);
            writer.WriteFloat("f15", model_0_to_100_kph);
            writer.WriteUTF("f16", model_drive);
            writer.WriteUTF("f17", model_transmission_type);
            writer.WriteInt("f18", model_seats);
            writer.WriteInt("f19", model_doors);
            writer.WriteInt("f20", model_weight_kg);
            writer.WriteInt("f21", model_length_mm);
            writer.WriteInt("f22", model_height_mm);
            writer.WriteInt("f23", model_width_mm);
            writer.WriteInt("f24", model_wheelbase_mm);

            writer.WriteFloat("f25", model_lkm_hwy);
            writer.WriteFloat("f26", model_lkm_mixed);
            writer.WriteFloat("f27", model_lkm_city);
            writer.WriteInt("f28", model_fuel_cap_l);
            writer.WriteBoolean("f29", model_sold_in_us);
            writer.WriteFloat("f30", model_co2);
            writer.WriteUTF("f31", model_make_display);
            writer.WriteUTF("f32", make_display);
            writer.WriteUTF("f33", make_country);
        }
Esempio n. 59
0
 public override void WritePortable(IPortableWriter writer)
 {
     base.WritePortable(writer);
     writer.WriteInt("v", v);
 }
 public override void WritePortable(IPortableWriter writer)
 {
     base.WritePortable(writer);
     writer.WriteInt("v", v);
 }