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

Mono.Unix.UnixMarshal.PtrToStringUnix Method

Allocates a managed string and marshals the unmanaged string into the managed string using the Mono.Unix.UnixEncoding encoding. [Edit]

public static string PtrToStringUnix (IntPtr p)

Parameters

p
A IntPtr containing the address of an unmanaged string in the Mono.Unix.UnixEncoding encoding. [Edit]

Returns

A string containing a copy of the unmanaged string p, or null if p is IntPtr.Zero. [Edit]

Remarks

The input string p must have a terminating null 0x00 byte.

This is an optimized version of UnixMarshal.PtrToString(IntPtr) for the Mono.Unix.UnixEncoding encoding.

[Edit]

Requirements

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