/// <summary> /// Checks the validity of data at the current position of the stream by a countersign. /// </summary> /// <param name="stream">The stream to check.</param> /// <param name="countersign">The countersign to check.</param> /// <returns>true if the data at the current position of the stream is valid; otherwise, false.</returns> public static bool Check(this Stream stream, IOChecks countersign) { return(Check(stream, (Int64)countersign)); }
public static void WriteCheckCode(this Stream stream, IOChecks value) { stream.WriteCheckCode((Int64)value); }