public virtual int skipBytes(int n) { if (complete) { /* we know the length, check skip is within length */ if (pos + n > len) { throw new System.IO.EndOfStreamException(); } } pos += n; return n; }