Fan.Sys.FileBuf.getPos C# (CSharp) Method

getPos() private method

private getPos ( ) : long
return long
        internal override long getPos()
        {
            try
              {
            return m_stream.Position;
              }
              catch (IOException e)
              {
            throw IOErr.make(e).val;
              }
        }

Usage Example

Example #1
0
 public override InStream unread(int n)
 {
     try
     {
         long pos = p.getPos();
         p.m_stream.Position = pos - 1;
         p.m_stream.WriteByte((byte)n);
         p.m_stream.Position = pos - 1;
         return(this);
     }
     catch (IOException e)
     {
         throw IOErr.make(e).val;
     }
 }