/// <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 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); }
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); }
/// <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); }
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); }
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.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.WriteInt("id", Id); writer.WriteUTF("name", Name); writer.WriteLong("lastOrder", LastOrder.ToFileTimeUtc()); }
void IPortable.WritePortable(IPortableWriter writer) { writer.WriteLong("handle", _handle); }
/// <exception cref="System.IO.IOException"/> public virtual void WritePortable(IPortableWriter writer) { writer.WriteLong("timestamp", timestamp); }
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); }
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); }
/// <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); }