public void WriteExternal(IPofWriter writer) { writer.WriteInt32(0, INTEGER); IPofWriter nested1 = writer.CreateNestedPofWriter(1); IPofWriter nested2 = nested1.CreateNestedPofWriter(0); nested2.WriteString(0, STRING); nested2.WriteObject(1, PERSON); nested2.WriteDoubleArray(2, DOUBLE_ARRAY); IPofWriter nested3 = nested2.CreateNestedPofWriter(3); nested3.WriteArray(0, STRING_ARRAY, typeof(String)); nested2.WriteBoolean(4, false); nested2.WriteRemainder(null); nested1.WriteCollection(1, (ICollection <String>)set); nested1.WriteDouble(2, 2.0); nested1.WriteInt32(3, 5); nested1.WriteCollection(4, set, typeof(String)); nested1.WriteObject(5, PERSON); nested1.WriteDouble(10, 2.222); writer.WriteDouble(2, 4.444); writer.WriteInt32(3, 15); writer.WriteObject(4, PERSON); }
public void WriteExternal(IPofWriter writer) { writer.WriteInt32(0, INTEGER); IPofWriter nested1 = writer.CreateNestedPofWriter(1); IPofWriter nested2 = nested1.CreateNestedPofWriter(0); nested2.WriteString(0, STRING); nested2.WriteSingleArray(2, FLOAT_ARRAY); IPofWriter nested3 = nested2.CreateNestedPofWriter(3); nested3.WriteArray(0, STRING_ARRAY, typeof(String)); nested2.WriteBoolean(4, false); nested2.WriteRemainder(null); IList list = (IList)set; nested1.WriteCollection(1, list); nested1.WriteDouble(2, 2.0); nested1.WriteInt32(3, 5); nested1.WriteCollection(4, set); nested1.WriteDouble(10, 2.222); writer.WriteDouble(2, 4.444); writer.WriteInt32(3, 15); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public virtual void WriteExternal(IPofWriter writer) { int cPartitions = m_cPartitions; writer.WriteInt32(0, cPartitions); writer.WriteInt32(1, (int)Format.MarkedMany); writer.WriteInt64Array(3, m_alBits); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public virtual void WriteExternal(IPofWriter writer) { writer.WriteInt32(0, (int)m_mask); writer.WriteObject(1, m_filter); // space left for MapEventFilter expansion writer.WriteInt32(10, (int)m_maskSynth); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public virtual void WriteExternal(IPofWriter writer) { writer.WriteObject(0, m_filter); writer.WriteInt32(1, m_pageSize); writer.WriteInt32(2, m_page); writer.WriteObject(3, m_comparer); writer.WriteObject(4, m_anchorTop); writer.WriteObject(5, m_anchorBottom); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public virtual void WriteExternal(IPofWriter writer) { writer.WriteObject(0, m_sFilter); writer.WriteInt32(1, m_nEfficiency); writer.WriteInt32(2, m_nSizeIn); writer.WriteInt32(3, m_nSizeOut); writer.WriteInt64(4, m_cMillis); writer.WriteCollection(5, m_setIndexLookupRecords); writer.WriteCollection(6, m_listSubSteps); }
public void WriteExternal(IPofWriter writer) { writer.WriteInt32(0, 0); writer.WriteInt32(1, 1); writer.WriteInt32(2, 2); IPofWriter writer2 = writer.CreateNestedPofWriter(3); writer2.WriteInt32(0, 0); writer2.WriteInt32(1, 1); writer2.WriteInt32(2, 2); writer.WriteInt32(4, 4); writer.WriteInt32(5, 5); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public virtual void WriteExternal(IPofWriter writer) { writer.WriteString(0, m_memberName); // slot #1 is not used since Coherence 3.5 writer.WriteArray(2, m_parameters); writer.WriteInt32(3, m_target); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public virtual void WriteExternal(IPofWriter writer) { writer.WriteBoolean(0, IsParallel); writer.WriteObject(1, Extractor); writer.WriteObject(2, Comparer); writer.WriteInt32(3, Results); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public override void WriteExternal(IPofWriter writer) { base.WriteExternal(writer); writer.WriteInt64(0, RequestId); writer.WriteBoolean(1, IsFailure); ResultFormatType format = ResultFormat; writer.WriteInt32(2, (int)format); switch (format) { default: case ResultFormatType.Generic: writer.WriteObject(3, Result); break; case ResultFormatType.Collection: writer.WriteCollection(4, (ICollection)Result); break; case ResultFormatType.Map: writer.WriteDictionary(5, (IDictionary)Result); break; } }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public override void WriteExternal(IPofWriter writer) { base.WriteExternal(writer); writer.WriteInt32(1, ChannelId); writer.WriteByteArray(2, IdentityToken); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public virtual void WriteExternal(IPofWriter writer) { // note: this object is not responsible for writing out its parent object o = m_value; if (o == null) { writer.WriteByte(0, 0); } else if (o is string) { writer.WriteByte(0, (byte)XmlValueType.String); writer.WriteString(1, (string)o); } else if (o is bool) { writer.WriteByte(0, (byte)XmlValueType.Boolean); writer.WriteBoolean(1, (bool)o); } else if (o is int) { writer.WriteByte(0, (byte)XmlValueType.Integer); writer.WriteInt32(1, (int)o); } else if (o is long) { writer.WriteByte(0, (byte)XmlValueType.Long); writer.WriteInt64(1, (long)o); } else if (o is double) { writer.WriteByte(0, (byte)XmlValueType.Double); writer.WriteDouble(1, (Double)o); } else if (o is decimal) { writer.WriteByte(0, (byte )XmlValueType.Decimal); writer.WriteDecimal(1, (decimal)o); } else if (o is Binary) { writer.WriteByte(0, (byte)XmlValueType.Binary); writer.WriteBinary(1, (Binary)o); } else if (o is DateTime) { writer.WriteByte(0, (byte)XmlValueType.DateTime); writer.WriteDateTime(1, (DateTime)o); } else { throw new IOException("unsupported type to write: " + o.GetType().FullName); } writer.WriteBoolean(2, m_isAttribute); writer.WriteBoolean(3, m_isMutable); }
/// <summary> /// Save the contents of a POF user type instance by writing /// its state using the specified <see cref="IPofWriter"/> /// object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's /// state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public override void WriteExternal(IPofWriter writer) { base.WriteExternal(writer); writer.WriteObject(1, ClientId); writer.WriteInt32(2, Edition); writer.WriteDictionary(3, ProtocolVersionMap, typeof(string), typeof(Int32[])); writer.WriteByteArray(4, IdentityToken); writer.WriteObject(5, Member); writer.WriteString(6, ClusterName); writer.WriteString(7, ServiceName); }
public override void WriteExternal(IPofWriter writer) { if (writer.UserTypeId == 1) { writer.WriteString(0, Name); writer.WriteInt32(1, Age); } else { base.WriteExternal(writer); } }
public void WriteExternal(IPofWriter writer) { writer.WriteCollection(0, getList1()); writer.WriteCollection(1, getList2()); writer.WriteCollection(2, getList3()); writer.WriteDictionary(3, getMap1()); writer.WriteDictionary(4, getMap2()); writer.WriteDictionary(5, getMap3()); writer.WriteInt32(6, getNumber()); writer.WriteString(7, getText()); writer.WriteArray(8, getChildren(), typeof(PofChild)); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public override void WriteExternal(IPofWriter writer) { base.WriteExternal(writer); writer.WriteInt32(0, (int)EventType); int implVersion = ImplVersion; if (implVersion > 3) { writer.WriteInt64Array(1, FilterIds); } else { writer.WriteInt64(1, FilterId); } writer.WriteObject(2, Key); writer.WriteObject(3, ValueNew); writer.WriteObject(4, ValueOld); writer.WriteBoolean(5, IsSynthetic); // COH-9355 if (implVersion > 4) { writer.WriteInt32(6, (int)TransformState); } // COH-13916 if (implVersion > 5) { writer.WriteBoolean(7, IsTruncate); } // COH-18376 if (implVersion > 6) { writer.WriteBoolean(8, IsPriming); } }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public void WriteExternal(IPofWriter writer) { IPofNavigator navigator = m_navigator; if (navigator == null) { throw new SerializationException( "PofExtractor was constructed without a navigator"); } writer.WriteInt32(0, m_target); writer.WriteObject(1, navigator); // see note in readExternal regarding T_UNKNOWN offset writer.WriteInt64(2, (long)GetPofTypeId(writer.PofContext) - (long)PofConstants.T_UNKNOWN); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public void WriteExternal(IPofWriter writer) { EnsureConstructed(); // COH-8647 - Java expects epoch based timestamps writer.WriteInt64(0, DateTimeUtils.GetTimeMillisSinceTheEpoch(m_dateTime)); writer.WriteInt32(1, m_addr1); writer.WriteInt32(2, m_addr2); writer.WriteInt32(3, m_addr3); writer.WriteInt32(4, m_addr4); writer.WriteInt32(5, m_port); writer.WriteInt32(6, m_count); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public virtual void WriteExternal(IPofWriter writer) { writer.WriteInt32(0, m_target); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <remarks> /// The AbstractPriorityTask implementation reserves property indexes /// 0 - 9. /// </remarks> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public virtual void WriteExternal(IPofWriter writer) { writer.WriteInt32(0, (int)m_schedulingPriority); writer.WriteInt64(1, m_executionTimeoutMillis); writer.WriteInt64(2, m_requestTimeoutMillis); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public virtual void WriteExternal(IPofWriter writer) { writer.WriteInt32(0, (int)m_type); writer.WriteCollection(1, m_listResults); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public virtual void WriteExternal(IPofWriter writer) { writer.WriteObject(0, m_filter); writer.WriteInt32(1, (int)m_action); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException"> /// If an I/O error occurs. /// </exception> public virtual void WriteExternal(IPofWriter writer) { writer.WriteInt32(0, (int)m_type); }
/// <summary> /// Save the contents of a POF user type instance by writing its /// state using the specified <see cref="IPofWriter"/> object. /// </summary> /// <param name="writer"> /// The <b>IPofWriter</b> to which to write the object's state. /// </param> /// <exception cref="IOException">If an I/O error occurs.</exception> public override void WriteExternal(IPofWriter writer) { base.WriteExternal(writer); writer.WriteInt32(1, (int)m_style); }