Class InteropHelpers.SteamParamStringArray
Marshals a string list into a native SteamParamStringArray_t for one call. Because it is a SafeHandle parameter, the marshaller keeps it alive for the whole native call. The generated wrappers construct it inline, so as a plain IntPtr it could be collected while Steam reads it.
Inheritance
InteropHelpers.SteamParamStringArray
Implements
Inherited Members
Namespace: Unity.Steamworks.Interop
Assembly: Unity.Steamworks.Interop.dll
Syntax
public class InteropHelpers.SteamParamStringArray : SafeHandleZeroOrMinusOneIsInvalid, IDisposable
Constructors
SteamParamStringArray(IList<string>)
Allocates the UTF-8 strings and the SteamParamStringArray_t that points at them.
Declaration
public SteamParamStringArray(IList<string> strings)
Parameters
| Type | Name | Description |
|---|---|---|
| IList<string> | strings | The strings to marshal; null leaves the handle invalid. |
Methods
ReleaseHandle()
Frees the unmanaged memory this handle owns.
Declaration
protected override bool ReleaseHandle()
Returns
| Type | Description |
|---|---|
| bool | true once every allocation has been released. |
Overrides
Operators
implicit operator IntPtr(SteamParamStringArray)
The SteamParamStringArray_t* the flat API expects, or IntPtr.Zero for a null list.
Declaration
public static implicit operator IntPtr(InteropHelpers.SteamParamStringArray that)
Parameters
| Type | Name | Description |
|---|---|---|
| InteropHelpers.SteamParamStringArray | that | The array to take the pointer from; may be null. |
Returns
| Type | Description |
|---|---|
| IntPtr | The |