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

Verify() public method

Indicate the byte value at the position plus an offset equals a specified byte
public Verify ( byte val, int offset ) : bool
val byte A uint value
offset int An int value
return bool
        public bool Verify(byte val, int offset)
        {
            byte[] tmp = this.GetBuffer();
            return !this.IsEndOfStream && tmp[(int)this.Position + offset] == val;
        }
    }

Same methods

FastTransferStream::Verify ( uint val ) : bool
FastTransferStream::Verify ( uint val, int offset ) : bool
FastTransferStream::Verify ( ushort val ) : 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