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; }