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

            writer0.DetachNext();
            PortableUtils.WritePortableOrSerializable(writer0, Result);
        }
        /** <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);
        }
        /** {@inheritDoc} */
        public void WritePortable(IPortableWriter writer)
        {
            IPortableRawWriter rawWriter = writer.RawWriter();

            rawWriter.WriteObject(PortableCfg);

            rawWriter.WriteGenericCollection(Assemblies);
        }
        /** <inheritdoc /> */
        public void WritePortable(IPortableWriter writer)
        {
            var writer0 = (PortableWriterImpl)writer.RawWriter();

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

            writer0.WriteBoolean(_keepPortable);
        }
Beispiel #6
0
        /** <inheritDoc /> */
        public void WritePortable(IPortableWriter writer)
        {
            PortableWriterImpl writer0 = (PortableWriterImpl)writer.RawWriter();

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

            writer0.DetachNext();
            PortableUtils.WritePortableOrSerializable(writer0, _arg);
        }
        /// <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);
        }
        /** {@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);
        }
        /** {@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);
        }
Beispiel #10
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);
            }
        }
        /** <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);
            }
        }
Beispiel #12
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);
            }
        }
 /** <inheritDoc /> */
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteInt("a", A);
     writer.RawWriter().WriteInt(B);
 }
        /** {@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);
        }
            /** <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);
            }
            /** <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);
            }
            /** <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);
            }
Beispiel #19
0
        /** <inheritdoc /> */
        public void WritePortable(IPortableWriter writer)
        {
            var w = writer.RawWriter();

            w.WriteBoolean(ThrowErr);
        }
Beispiel #20
0
 /** <inheritDoc /> */
 public void WritePortable(IPortableWriter writer)
 {
     writer.WriteInt("a", A);
     writer.RawWriter().WriteString(B);
 }
        /** <inheritdoc /> */
        public void WritePortable(IPortableWriter writer)
        {
            var writer0 = (PortableWriterImpl)writer.RawWriter();

            writer0.DetachNext();
            PortableUtils.WritePortableOrSerializable(writer0, _pred);
            
            writer0.WriteBoolean(_keepPortable);
        }
Beispiel #22
0
 /** <inheritdoc /> */
 public void WritePortable(IPortableWriter writer)
 {
     writer.RawWriter().WriteInt(_type);
 }
Beispiel #23
0
 /** <inheritDoc /> */
 public void WritePortable(IPortableWriter writer)
 {
     writer.RawWriter().WriteString(Msg);
 }
            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);
            }
        /** {@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>
        /// 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 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);
            }