/// <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(StartMarker) && stream.VerifyMarker( EndMarker, (int)stream.Length - MarkersHelper.PidTagLength - (int)stream.Position)); }
/// <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.PidTagIncrSyncEnd, (int)stream.Length - MarkersHelper.PidTagLength - (int)stream.Position)); }
/// <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) || ProgressPerMessage.Verify(stream) || MessageChange.Verify(stream) || Deletions.Verify(stream) || ReadStateChanges.Verify(stream) || State.Verify(stream)) && stream.VerifyMarker( EndMarker, (int)stream.Length - MarkersHelper.PidTagLength - (int)stream.Position)); }
/// <summary> /// Verify that a stream's current position contains a serialized MessageChangePartial. /// </summary> /// <param name="stream">A FastTransferStream.</param> /// <returns>If the stream's current position contains /// a serialized MessageChangePartial, return true, else false.</returns> public static new bool Verify(FastTransferStream stream) { return GroupInfo.Verify(stream) || stream.VerifyMetaProperty(MetaProperties.MetaTagIncrSyncGroupId) || stream.VerifyMarker(Markers.PidTagIncrSyncChgPartial); }
/// <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(StartMarker) && stream.VerifyMarker( EndMarker, (int)stream.Length - MarkersHelper.PidTagLength - (int)stream.Position); }
/// <summary> /// Verify that a stream's current position contains a serialized ProgressPerMessage. /// </summary> /// <param name="stream">A FastTransferStream.</param> /// <returns>If the stream's current position contains /// a serialized ProgressPerMessage, return true, else false.</returns> public static bool Verify(FastTransferStream stream) { return(stream.VerifyMarker(Markers.PidTagIncrSyncProgressPerMsg)); }
/// <summary> /// Verify that a stream's current position contains a serialized messageChangeFull. /// </summary> /// <param name="stream">A FastTransferStream.</param> /// <returns>If the stream's current position contains /// a serialized messageChangeFull, return true, else false.</returns> public static new bool Verify(FastTransferStream stream) { return(stream.VerifyMarker(Markers.PidTagIncrSyncChg)); }
/// <summary> /// Verify that a stream's current position contains a serialized ProgressPerMessage. /// </summary> /// <param name="stream">A FastTransferStream.</param> /// <returns>If the stream's current position contains /// a serialized ProgressPerMessage, return true, else false.</returns> public static bool Verify(FastTransferStream stream) { return stream.VerifyMarker(Markers.PidTagIncrSyncProgressPerMsg); }
/// <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) || ProgressPerMessage.Verify(stream) || MessageChange.Verify(stream) || Deletions.Verify(stream) || ReadStateChanges.Verify(stream) || State.Verify(stream)) && stream.VerifyMarker( EndMarker, (int)stream.Length - MarkersHelper.PidTagLength - (int)stream.Position); }
/// <summary> /// Verify that a stream's current position contains a serialized deletions. /// </summary> /// <param name="stream">A FastTransferStream.</param> /// <returns>If the stream's current position contains /// a serialized deletions, return true, else false.</returns> public static bool Verify(FastTransferStream stream) { return stream.VerifyMarker(Markers.PidTagIncrSyncDel); }
/// <summary> /// Verify that a stream's current position contains a serialized MessageChangePartial. /// </summary> /// <param name="stream">A FastTransferStream.</param> /// <returns>If the stream's current position contains /// a serialized MessageChangePartial, return true, else false.</returns> public static new bool Verify(FastTransferStream stream) { return(GroupInfo.Verify(stream) || stream.VerifyMetaProperty(MetaProperties.MetaTagIncrSyncGroupId) || stream.VerifyMarker(Markers.PidTagIncrSyncChgPartial)); }
/// <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.PidTagIncrSyncEnd, (int)stream.Length - MarkersHelper.PidTagLength - (int)stream.Position); }