/// <summary> /// Verify that a stream's current position contains a serialized PropValue. /// </summary> /// <param name="stream">A FastTransferStream.</param> /// <returns>If the stream's current position contains a serialized PropValue, return true, else false.</returns> public static bool Verify(FastTransferStream stream) { return !stream.IsEndOfStream && (FixedPropTypePropValue.Verify(stream) || VarPropTypePropValue.Verify(stream) || MvPropTypePropValue.Verify(stream)) && !MarkersHelper.IsMarker(stream.VerifyUInt32()) && !MarkersHelper.IsMetaTag(stream.VerifyUInt32()); }
/// <summary> /// Verify that a stream's current position contains a serialized SyncMessagePartialPropList. /// </summary> /// <param name="stream">A FastTransferStream.</param> /// <returns>If the stream's current position contains a serialized SyncMessagePartialPropList, return true, else false.</returns> public static bool Verify(FastTransferStream stream) { return stream.VerifyUInt32() == (uint)MetaProperties.MetaTagIncrementalSyncMessagePartial; }
/// <summary> /// Verify that a stream's current position contains a serialized MetaTagEcWaringMessage. /// </summary> /// <param name="stream">A FastTransferStream.</param> /// <returns>If the stream's current position contains a serialized MetaTagEcWaringMessage, return true, else false.</returns> public static bool Verify(FastTransferStream stream) { return !stream.IsEndOfStream && (stream.VerifyUInt32() == (uint)MetaProperties.MetaTagEcWarning) || Message.Verify(stream); }