/// <exception cref="System.IO.IOException" />
 public virtual void WritePortable(IPortableWriter writer)
 {
     writer.WriteLong("height", height);
     writer.WriteInt("age", age);
     writer.WriteString("name", name);
     writer.WritePortable("address", address);
 }
 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);
 }
        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);
        }
        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);
        }
Exemple #5
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);
     }
 }
 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);
     }
 }
Exemple #7
0
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteUTF("name", name);
     writer.WritePortable("limb", limb);
 }
 /// <exception cref="System.IO.IOException"/>
 public virtual void WritePortable(IPortableWriter writer)
 {
     writer.WriteLong("timestamp", timestamp);
     writer.WritePortable("child", child);
 }
 void IPortable.WritePortable(IPortableWriter writer)
 {
     writer.WritePortable("header", _header);
     writer.WriteIntArray("enabled", _enabled);
     writer.WriteIntArray("disabled", _disabled);
 }
 void IPortable.WritePortable(IPortableWriter writer)
 {
     writer.WritePortable("header", _header);
     writer.WriteIntArray("enabled", _enabled);
     writer.WriteIntArray("disabled", _disabled);
 }
 void IPortable.WritePortable(IPortableWriter writer)
 {
     writer.WriteLong("id", _id);
     writer.WritePortable("handle", _handle);
 }
Exemple #12
0
 /// <exception cref="System.IO.IOException"/>
 public virtual void WritePortable(IPortableWriter writer)
 {
     writer.WriteLong("timestamp", timestamp);
     writer.WritePortable("child", child);
 }
 public void WritePortable(IPortableWriter writer)
 {
     writer.WritePortable("child", child);
 }
Exemple #14
0
 void IPortable.WritePortable(IPortableWriter writer)
 {
     writer.WriteLong("id", _id);
     writer.WritePortable("handle", _handle);
 }
 /// <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);
 }