Mono.Unix.UnixMarshal Class
Provides a collection of miscellaneous methods for marshaling strings, allocating memory, and interoperating with the operating system.

See Also: UnixMarshal Members

Syntax

public sealed class UnixMarshal

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 Handling UnixMarshal.GetErrorDescription, UnixMarshal.ShouldRetrySyscall, UnixMarshal.ThrowExceptionForError, UnixMarshal.ThrowExceptionForErrorIf, UnixMarshal.ThrowExceptionForLastError, UnixMarshal.ThrowExceptionForLastErrorIf
Memory Management UnixMarshal.AllocHeap, UnixMarshal.ReAllocHeap, UnixMarshal.FreeHeap

Thread Safety

This type is safe for multithreaded operations.

Requirements

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