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;
}
/// <summary> /// Verify that a stream's current position contains a serialized DispidNamedPropInfo. /// </summary> /// <param name="stream">A FastTransferStream</param> /// <returns>If the stream's current position contains a serialized DispidNamedPropInfo, return true, else false</returns> public static bool Verify(FastTransferStream stream) { return stream.Verify(0x00, Guid.Empty.ToByteArray().Length); }