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
コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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));
 }