本文整理汇总了C#中MAPIInspector.Parsers.FastTransferStream.VerifyUInt16方法的典型用法代码示例。如果您正苦于以下问题:C# FastTransferStream.VerifyUInt16方法的具体用法?C# FastTransferStream.VerifyUInt16怎么用?C# FastTransferStream.VerifyUInt16使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MAPIInspector.Parsers.FastTransferStream
的用法示例。
在下文中一共展示了FastTransferStream.VerifyUInt16方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Verify
/// <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);
}
示例2: IsMetaTagIdsetGiven
/// <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;
}