public void WriteExternal(IPofWriter writer) { writer.WriteArray(0, m_oArray); writer.WriteArray(1, m_sArray, typeof(String)); writer.WriteCollection(2, m_col); writer.WriteCollection(3, m_colUniform, typeof(String)); writer.WriteLongArray(4, m_sparseArray); writer.WriteLongArray(5, m_uniformSparseArray, typeof(String)); }
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); }
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); }
/// <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) { writer.WriteBoolean(0, m_fetchExtractor); writer.WriteString(1, m_query); writer.WriteArray(2, m_env); writer.WriteDictionary(3, m_bindings); }
/// <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); }
public void Serialize(IPofWriter writer) { int i = 0; writer.WriteObject(i++, key); writer.WriteS32(i++, level); writer.WriteArray(i++, friends.ToArray()); }
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 virtual void WriteExternal(IPofWriter writer) { writer.WriteArray(0, m_filters); writer.WriteBoolean(1, m_preserveOrder); }
/// <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.WriteArray(0, m_aggregators); }
/// <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.WriteArray(0, m_processors); }
/// <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.WriteArray(0, m_extractors); }
/// <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.WriteArray(0, m_comparers); }