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

Mono.Unix.UnixMarshal.PtrToStringArray Method

Allocates a string array and unmarshals the unmanaged string array into a managed string array.

public static string[] PtrToStringArray (int count, IntPtr stringArray)

Parameters

count
A int containing the number of strings in stringArray.
stringArray
A IntPtr containing a byte** array.

Returns

A string array containing count strings from the unmanaged string array stringArray. If stringArray is IntPtr.Zero, a string array containing zero elements is returned.

Remarks

This method is identical to UnixMarshal.PtrToStringArray (count, stringArray, UnixEncoding.Instance).

Requirements

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