Mono Class Library: Mono.Unix Namespace

Mono.Unix.UnixMarshal Class

Provides a collection of miscellaneous methods for marshaling strings, allocating memory, and interoperating with the operating system. [Edit]

See Also: UnixMarshal Members

public sealed class UnixMarshal

Thread Safety

This type is safe for multithreaded operations.

Remarks

The UnixMarshal class consists of many members to facilitate the System.Runtime.InteropServices.Marshal class, specifically for use with Unix.

The following table assigns each method to a category that describes its usage:

CategoryMembers
Data Transformation

Managed to unmanaged: UnixMarshal.StringToHeap,

Unmanaged to managed: UnixMarshal.PtrToString, UnixMarshal.PtrToStringArray, UnixMarshal.PtrToStringUnix

Error HandlingUnixMarshal.GetErrorDescription, UnixMarshal.ShouldRetrySyscall, UnixMarshal.ThrowExceptionForError, UnixMarshal.ThrowExceptionForErrorIf, UnixMarshal.ThrowExceptionForLastError, UnixMarshal.ThrowExceptionForLastErrorIf
Memory ManagementUnixMarshal.AllocHeap, UnixMarshal.ReAllocHeap, UnixMarshal.FreeHeap
[Edit]

Requirements

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