Microsoft.Protocols.TestSuites.MS_OXCFXICS.FastTransferStream.VerifyUInt16 C# (CSharp) Method

VerifyUInt16() public method

Get an unsigned short integer value for current position plus an offset and does not advance the position.
public VerifyUInt16 ( ) : ushort
return ushort
        public ushort VerifyUInt16()
        {
            return BitConverter.ToUInt16(
                this.GetBuffer(),
                (int)this.Position);
        }

Same methods

FastTransferStream::VerifyUInt16 ( int offset ) : ushort

Usage Example

        /// <summary>
        /// Verify that a stream's current position contains a serialized MvPropTypePropValue.
        /// </summary>
        /// <param name="stream">A FastTransferStream.</param>
        /// <returns>I the stream's current position contains
        /// a serialized MvPropTypePropValue, return true, else false</returns>
        public static new bool Verify(FastTransferStream stream)
        {
            ushort tmp = stream.VerifyUInt16();

            return(LexicalTypeHelper.IsMVType((PropertyDataType)tmp) && !PropValue.IsPidTagIdsetGiven(stream));
        }
All Usage Examples Of Microsoft.Protocols.TestSuites.MS_OXCFXICS.FastTransferStream::VerifyUInt16