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

Verify() public method

Indicate the unsigned short integer value at the position equals a specified unsigned short integer value.
public Verify ( ushort val ) : bool
val ushort An unsigned short integer value
return bool
        public bool Verify(ushort val)
        {
            return !this.IsEndOfStream && BitConverter.ToUInt16(
                this.GetBuffer(),
                (int)this.Position) == val;
        }

Same methods

FastTransferStream::Verify ( byte val, int offset ) : bool
FastTransferStream::Verify ( uint val ) : bool
FastTransferStream::Verify ( uint val, int offset ) : bool

Usage Example

 /// <summary>
 /// Verify that a stream's current position contains a serialized NameNamedPropInfo.
 /// </summary>
 /// <param name="stream">A FastTransferStream</param>
 /// <returns>If the stream's current position contains 
 /// a serialized NameNamedPropInfo, return true, else false</returns>
 public static bool Verify(FastTransferStream stream)
 {
     return stream.Verify(0x01, Guid.Empty.ToByteArray().Length);
 }
All Usage Examples Of Microsoft.Protocols.TestSuites.MS_OXCFXICS.FastTransferStream::Verify