VerifyMarker() публичный Метод

Indicate the Markers at the position equals a specified Markers.
public VerifyMarker ( Markers marker ) : bool
marker Markers A Markers value
Результат bool
 /// <summary>
 /// Verify that a stream's current position contains a serialized EmbeddedMessage.
 /// </summary>
 /// <param name="stream">A FastTransferStream.</param>
 /// <returns>If the stream's current position contains a serialized EmbeddedMessage, return true, else false.</returns>
 public static bool Verify(FastTransferStream stream)
 {
     return stream.VerifyMarker(Markers.StartEmbed);
 }
 /// <summary>
 /// Verify that a stream's current position contains a serialized contentsSync.
 /// </summary>
 /// <param name="stream">A FastTransferStream.</param>
 /// <returns>If the stream's current position contains a serialized contentsSync, return true, else false.</returns>
 public static bool Verify(FastTransferStream stream)
 {
     return (ProgressTotal.Verify(stream)
         || ProgressPerMessageChange.Verify(stream)
         || Deletions.Verify(stream)
         || ReadStateChanges.Verify(stream)
         || State.Verify(stream))
         && stream.VerifyMarker(Markers.IncrSyncEnd, (int)stream.Length - 4 - (int)stream.Position); ;
 }
 /// <summary>
 /// Verify that a stream's current position contains a serialized State.
 /// </summary>
 /// <param name="stream">A FastTransferStream.</param>
 /// <returns>If the stream's current position contains a serialized State, return true, else false.</returns>
 public static bool Verify(FastTransferStream stream)
 {
     return stream.VerifyMarker(Markers.IncrSyncStateBegin);
 }
 /// <summary>
 /// Verify that a stream's current position contains a serialized progressTotal.
 /// </summary>
 /// <param name="stream">A FastTransferStream.</param>
 /// <returns>If the stream's current position contains a serialized progressTotal, return true, else false.</returns>
 public static bool Verify(FastTransferStream stream)
 {
     return stream.VerifyMarker(Markers.IncrSyncProgressMode);
 }
 /// <summary>
 /// Verify that a stream's current position contains a serialized attachment.
 /// </summary>
 /// <param name="stream">A FastTransferStream.</param>
 /// <returns>If the stream's current position contains a serialized attachment, return true, else false.</returns>
 public static bool Verify(FastTransferStream stream)
 {
     return stream.VerifyMarker(Markers.NewAttach);
 }
 /// <summary>
 /// Verify that a stream's current position contains a serialized message.
 /// </summary>
 /// <param name="stream">A FastTransferStream.</param>
 /// <returns>If the stream's current position contains a serialized message, return true, else false.</returns>
 public static bool Verify(FastTransferStream stream)
 {
     return stream.VerifyMarker(Markers.StartMessage) ||
         stream.VerifyMarker(Markers.StartFAIMsg);
 }
 /// <summary>
 /// Verify that a stream's current position contains a serialized hierarchySync.
 /// </summary>
 /// <param name="stream">A FastTransferStream.</param>
 /// <returns>If the stream's current position contains a serialized hierarchySync, return true, else false.</returns>
 public static bool Verify(FastTransferStream stream)
 {
     return (FolderChange.Verify(stream)
         || Deletions.Verify(stream)
         || State.Verify(stream))
         && stream.VerifyMarker(Markers.IncrSyncEnd, (int)stream.Length - 4 - (int)stream.Position);
 }
 /// <summary>
 /// Verify that a stream's current position contains a serialized GroupInfo.
 /// </summary>
 /// <param name="stream">A FastTransferStream.</param>
 /// <returns>If the stream's current position contains a serialized GroupInfo, return true, else false.</returns>
 public static bool Verify(FastTransferStream stream)
 {
     return stream.VerifyMarker(Markers.IncrSyncGroupInfo);
 }