SharpCifs.Util.Sharpen.InputStream.Skip C# (CSharp) Method

Skip() public method

public Skip ( long cnt ) : long
cnt long
return long
		public virtual long Skip (long cnt)
		{
			if (Wrapped is WrappedSystemStream)
				return ((WrappedSystemStream)Wrapped).InputStream.Skip (cnt);
			
			long n = cnt;
			while (n > 0) {
				if (Read () == -1)
					return cnt - n;
				n--;
			}
			return cnt - n;
		}