java: public long skip(long n) {int s = (int) Math.min(available(), Math.max(0, n));ptr += s;return s;}
C#: public override long Skip(long n){int s = (int)Math.Min(Available(), Math.Max(0, n));ptr += s;return s;}