Esempio n. 1
0
        /// <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.IsPidTagIdsetGiven(stream));
        }
        /// <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.IsPidTagIdsetGiven(stream) ||
                   (tmp & 0x8000) == 0x8000);  // Adapter all code page specified in [MS-OXCFXICS]2.2.4.1.1.1 Code Page Property Types
        }