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);
            writer.WriteUTF("Text5", Text5);
            writer.WriteUTF("Text6", Text6);
            writer.WriteUTF("Text7", Text7);
            writer.WriteUTF("Text8", Text8);
            writer.WriteUTF("Text9", Text9);

            writer.WriteBoolean("Boolean0", Boolean0);
            writer.WriteBoolean("Boolean1", Boolean1);
            writer.WriteBoolean("Boolean2", Boolean2);
            writer.WriteBoolean("Boolean3", Boolean3);
            writer.WriteBoolean("Boolean4", Boolean4);

            writer.WriteLong("TimeStamp0", TimeStamp0);
            writer.WriteLong("TimeStamp1", TimeStamp1);
            writer.WriteLong("TimeStamp2", TimeStamp2);
            writer.WriteLong("TimeStamp3", TimeStamp3);
            writer.WriteLong("TimeStamp4", TimeStamp4);

            writer.WriteUTFArray("TextArray", TextArray);
            writer.WriteByteArray("ByteArray", DataArray);
        }
Beispiel #2
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);
     }
 }
Beispiel #3
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);
 }
Beispiel #4
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);
 }
 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);
 }