示例#1
0
 public override long Seek(long offset, System.IO.SeekOrigin origin)
 {
     if (origin.Equals(System.IO.SeekOrigin.Current))
     {
         return(this.input.skip(offset));
     }
     else
     {
         throw new java.lang.IllegalArgumentException(new java.lang.UnsupportedOperationException("Only seek from current position yet implemented"));
     }
 }
示例#2
0
        public override long Seek(long offset, System.IO.SeekOrigin origin)
        {
            if (origin.Equals(SeekOrigin.End))
            {
                Position = _length;
            }
            else
            {
                Position = offset;
            }

            return(Position);
        }