public StreamCounter(Stream stream, CounterDirection direction, long totalLength, bool restrictRead) { baseStream = stream; mDirection = direction; mTotalLength = totalLength; mRestrictRead = restrictRead; }
public StreamCounter(Stream stream, CounterDirection direction, long totalLength) : this(stream, direction, totalLength, false) { }