CSJ2K.j2k.util.ISRandomAccessIO.skipBytes C# (CSharp) Méthode

skipBytes() public méthode

Skips 'n' bytes from the input.
If the end-of file was reached before all the /// bytes could be skipped. /// /// If an I/O error ocurred. /// ///
public skipBytes ( int n ) : int
n int The number of bytes to skip /// ///
Résultat int
        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;
        }