/// <summary> /// Skips over and discards <code>n</code> bytes of data from the /// input stream. The <code>skip</code> method may, for a variety of /// reasons, end up skipping over some smaller number of bytes, /// possibly <code>0</code>. The actual number of bytes skipped is returned. /// </summary> /// <param name="n"> the number of bytes to be skipped. </param> /// <returns> the actual number of bytes skipped. </returns> /// <exception cref="IOException"> if an I/O error occurs. </exception> public virtual long skip(long n) { if (fd != null) { return(fd.skip(n)); } else { throw new System.IO.IOException("1-Wire FileDescriptor is null"); } }