/// <summary> /// Verify that a stream's current position contains a serialized VarPropTypePropValue. /// </summary> /// <param name="stream">A FastTransferStream.</param> /// <returns>If the stream's current position contains a serialized VarPropTypePropValue, return true, else false</returns> public static new bool Verify(FastTransferStream stream) { ushort tmp = stream.VerifyUInt16(); return LexicalTypeHelper.IsVarType((PropertyDataType)tmp) || PropValue.IsMetaTagIdsetGiven(stream) || LexicalTypeHelper.IsCodePageType(tmp); }
/// <summary> /// Verify that a stream's current position contains a serialized MetaPropValue. /// </summary> /// <param name="stream">A FastTransferStream.</param> /// <returns>If the stream's current position contains a serialized MetaPropValue, return true, else false.</returns> public static bool Verify(FastTransferStream stream) { ushort tmpType = stream.VerifyUInt16(); ushort tmpId = stream.VerifyUInt16(); return !stream.IsEndOfStream && LexicalTypeHelper.IsMetaPropertyID(tmpId); }
/// <summary> /// Indicate whether the stream's position is IsMetaTagIdsetGiven. /// </summary> /// <param name="stream">A FastTransferStream.</param> /// <returns>True if the stream's position is IsMetaTagIdsetGiven,else false.</returns> public static bool IsMetaTagIdsetGiven(FastTransferStream stream) { ushort type = stream.VerifyUInt16(); ushort id = stream.VerifyUInt16(2); return type == (ushort)PropertyDataType.PtypInteger32 && id == 0x4017; }
/// <summary> /// Verify that a stream's current position contains a serialized FixedPropTypePropValue. /// </summary> /// <param name="stream">A FastTransferStream.</param> /// <returns>If the stream's current position contains a serialized FixedPropTypePropValue, return true, else false</returns> public static new bool Verify(FastTransferStream stream) { ushort tmp = stream.VerifyUInt16(); return LexicalTypeHelper.IsFixedType((PropertyDataType)tmp) && !PropValue.IsMetaTagIdsetGiven(stream); }