Mono Class Library: Mono.Unix.Native Namespace

Mono.Unix.Native.FilePosition Class

A wrapper for the platform-specific fpos_t. [Edit]

See Also: FilePosition Members

System.MarshalByRefObject
     Mono.Unix.Native.FilePosition

public sealed class FilePosition : MarshalByRefObject, IDisposable, IEquatable<FilePosition>

See Also

Mono.Unix.StdioFileStream.RestoreFilePosition
Mono.Unix.StdioFileStream.SaveFilePosition
Stdlib.fgetpos
Stdlib.fsetpos

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Remarks

FilePosition is an alternate mechanism for specifying a location within a file, which can take into account text vs. binary FILE stream differences. It exists to support platforms for which file positions can exceed the size of long.

FilePosition wraps unmanaged memory. It contains a finalizer to free this memory, but using FilePosition.Dispose is highly recommended to avoid additional GC pressure.

[Edit]

Requirements

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