/// <summary> /// Serialise the current state of the handler to the given stream. /// </summary> /// <remarks> /// This is in direct support of recording incoming data streams. In /// particular, this supports when recording is requested after the first /// data packet has come through. This call must write the required messages /// to restore the handler from its initial state to its exact current state. /// /// For example, the sphere rendering shape handler will simulate sphere /// creation packets for the existing spheres. /// </remarks> /// <param name="writer">The steam to serialise the current state to.</param> /// <param name="info">Passed to attain information about serialisation.</param> public abstract Error Serialise(BinaryWriter writer, ref SerialiseInfo info);
/// <summary> /// Serialise the current state of the handler to the given stream. /// </summary> /// <param name="writer">The steam to serialise the current state to.</param> /// <remarks> /// See <see cref="Serialise(BinaryWriter, ref SerialiseInfo)"/> /// </remarks> public Error Serialise(BinaryWriter writer) { SerialiseInfo info = new SerialiseInfo(); return(Serialise(writer, ref info)); }