Esempio n. 1
0
        public void SaveFilePosition(Native.FilePosition pos)
        {
            AssertNotDisposed();
            int r = Native.Stdlib.fgetpos(file, pos);

            UnixMarshal.ThrowExceptionForLastErrorIf(r);
            GC.KeepAlive(this);
        }
Esempio n. 2
0
        public void RestoreFilePosition(Native.FilePosition pos)
        {
            AssertNotDisposed();
            if (pos == null)
            {
                throw new ArgumentNullException("value");
            }
            int r = Native.Stdlib.fsetpos(file, pos);

            UnixMarshal.ThrowExceptionForLastErrorIf(r);
            GC.KeepAlive(this);
        }
Esempio n. 3
0
 public static int fsetpos(IntPtr stream, FilePosition pos)
 {
     return(sys_fsetpos(stream, pos.Handle));
 }
Esempio n. 4
0
 public static int fgetpos(IntPtr stream, FilePosition pos)
 {
     return(Stdlib.sys_fgetpos(stream, pos.Handle));
 }