Mono Class Library: Mono.Unix.StdioFileStream Overview | Members

Mono.Unix.StdioFileStream.SaveFilePosition Method

Save the current file position into a Mono.Unix.Native.FilePosition instance. [Edit]

public void SaveFilePosition (Mono.Unix.Native.FilePosition pos)

See Also

Mono.Unix.Native.Stdlib.fgetpos

Parameters

pos
A Mono.Unix.Native.FilePosition in which to save the current file position. [Edit]

Remarks

The Mono.Unix.Native.FilePosition type holds a platform-specific representation of a file position. This is useful when the underlying standard C library cannot hold a file position in a long data type. For example, on 32-bit platforms a long is usually 32-bits in size; thus valid file positions as used from System.IO.Stream.Position cannot be set past 2^31 bytes (effectively limiting you to 2GB files).

Use this member if your underlying platform doesn't support System.IO.Stream.Seeking within large files, or you need to save text stream information.

[Edit]

Requirements

Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0