public void WriteData(IObjectDataOutput output)
 {
     output.WriteBoolean(Bool);
     output.WriteBooleanArray(BoolArray);
     output.WriteByte(Byte);
     output.WriteByteArray(ByteArray);
     output.WriteChar(Char);
     output.WriteCharArray(CharArray);
     output.WriteShort(Short);
     output.WriteShortArray(ShortArray);
     output.WriteInt(Int);
     output.WriteIntArray(IntArray);
     output.WriteLong(Long);
     output.WriteLongArray(LongArray);
     output.WriteFloat(Float);
     output.WriteFloatArray(FloatArray);
     output.WriteDouble(Double);
     output.WriteDoubleArray(DoubleArray);
     output.WriteObject(Serializable);
     //output.WriteObject(SerializableArray);
     //output.WriteObject(Portable);
     //output.WriteObject(PortableArray);
     output.WriteInt(Chars.Length);
     output.WriteChars(Chars);
     output.WriteUTF(String);
     output.WriteUTFArray(StringArray);
     output.WriteObject(DateTime);
 }
 public void WriteData(IObjectDataOutput output)
 {
     output.WriteBoolean(Bool);
     output.WriteBooleanArray(BoolArray);
     output.WriteByte(Byte);
     output.WriteByteArray(ByteArray);
     output.WriteChar(Char);
     output.WriteCharArray(CharArray);
     output.WriteShort(Short);
     output.WriteShortArray(ShortArray);
     output.WriteInt(Int);
     output.WriteIntArray(IntArray);
     output.WriteLong(Long);
     output.WriteLongArray(LongArray);
     output.WriteFloat(Float);
     output.WriteFloatArray(FloatArray);
     output.WriteDouble(Double);
     output.WriteDoubleArray(DoubleArray);
     output.WriteObject(Serializable);
     //output.WriteObject(SerializableArray);
     //output.WriteObject(Portable);
     //output.WriteObject(PortableArray);
     output.WriteInt(Chars.Length);
     output.WriteChars(Chars);
     output.WriteUTF(String);
     output.WriteUTFArray(StringArray);
     output.WriteObject(DateTime);
 }
Esempio n. 3
0
 /// <exception cref="System.IO.IOException"></exception>
 public override void Write(IObjectDataOutput output, byte obj)
 {
     output.WriteByte(obj);
 }
            /// <exception cref="System.IO.IOException"></exception>
            public override void Write(IObjectDataOutput output, Guid obj)
            {
                var order = default(FixedSizeTypesCodec.JavaUUIDOrder);

                order.Value = obj;
                output.WriteByte(order.B00);
                output.WriteByte(order.B01);
                output.WriteByte(order.B02);
                output.WriteByte(order.B03);

                output.WriteByte(order.B04);
                output.WriteByte(order.B05);
                output.WriteByte(order.B06);
                output.WriteByte(order.B07);

                output.WriteByte(order.B08);
                output.WriteByte(order.B09);
                output.WriteByte(order.B10);
                output.WriteByte(order.B11);

                output.WriteByte(order.B12);
                output.WriteByte(order.B13);
                output.WriteByte(order.B14);
                output.WriteByte(order.B15);
            }
Esempio n. 5
0
        /// <exception cref="System.IO.IOException"></exception>
        public override void Write(IObjectDataOutput output, Guid obj)
        {
            var order = default(JavaUuidOrder);

            order.Value = obj;
            output.WriteByte(order.X0);
            output.WriteByte(order.X1);
            output.WriteByte(order.X2);
            output.WriteByte(order.X3);

            output.WriteByte(order.X4);
            output.WriteByte(order.X5);
            output.WriteByte(order.X6);
            output.WriteByte(order.X7);

            output.WriteByte(order.X8);
            output.WriteByte(order.X9);
            output.WriteByte(order.XA);
            output.WriteByte(order.XB);

            output.WriteByte(order.XC);
            output.WriteByte(order.XD);
            output.WriteByte(order.XE);
            output.WriteByte(order.XF);
        }