Mono Class Library: Overview

Mono.Unix.UnixMarshal: Members

The members of Mono.Unix.UnixMarshal are listed below.

See Also: Inherited members from System.Object

Public Methods

static
AllocHeap(long) : IntPtr
Allocates size bytes from the system heap.
static
FreeHeap(IntPtr)
Frees the memory referenced by ptr.
static
GetErrorDescription(Mono.Unix.Native.Errno) : string
Gets a description for the error code errno.
static
PtrToString(IntPtr) : string
Allocates a managed string and marshals the unmanaged string into the managed string.
static
PtrToString(IntPtr, System.Text.Encoding) : string
Allocates a managed string and marshals the unmanaged string into the managed string using the specified encoding.
static
PtrToStringArray(IntPtr) : string[]
Allocates a string array and unmarshals the unmanaged string array into a managed string array.
static
PtrToStringArray(int, IntPtr) : string[]
Allocates a string array and unmarshals the unmanaged string array into a managed string array.
static
PtrToStringArray(IntPtr, System.Text.Encoding) : string[]
Allocates a string array and unmarshals the unmanaged string array into a managed string array using the specified encoding.
static
PtrToStringArray(int, IntPtr, System.Text.Encoding) : string[]
Allocates a string array and unmarshals the unmanaged string array into a managed string array using the specified encoding.
static
PtrToStringUnix(IntPtr) : string
Allocates a managed string and marshals the unmanaged string into the managed string using the Mono.Unix.UnixEncoding encoding.
static
ReAllocHeap(IntPtr, long) : IntPtr
Changes the size of the memory block ptr to refer to size bytes of memory on the system heap.
static
ShouldRetrySyscall(int) : bool
Returns a bool indicating whether a system call should be retried.
static
ShouldRetrySyscall(int, out Mono.Unix.Native.Errno) : bool
Returns a bool indicating whether a system call should be retried, saving the last error value for later processing.
static
StringToHeap(string) : IntPtr
Allocates a copy of s on the system heap in the Mono.Unix.UnixEncoding encoding.
static
StringToHeap(string, System.Text.Encoding) : IntPtr
Allocates a copy of s on the system heap in the encoding encoding.
static
StringToHeap(string, int, int) : IntPtr
Allocates a copy of s on the system heap in the Mono.Unix.UnixEncoding encoding.
static
StringToHeap(string, int, int, System.Text.Encoding) : IntPtr
Allocates a copy of s on the system heap in the encoding encoding.
static
ThrowExceptionForError(Mono.Unix.Native.Errno)
Throws an exception that best matches errno.
static
ThrowExceptionForErrorIf(int, Mono.Unix.Native.Errno)
Throws an exception that best matches errno if retval is -1.
static
ThrowExceptionForLastError()
Throws an exception that best matches the last error returned from Mono.Unix.Native.Stdlib.GetLastError.
static
ThrowExceptionForLastErrorIf(int)
Throws an exception that best matches the last error returned from Mono.Unix.Native.Stdlib.GetLastError if retval is -1.