Class MMKVPMarshaller
Marshals a MatchMakingKeyValuePair_t[] into the MatchMakingKeyValuePair_t **
the SteamMatchmakingServers server-list requests take: a native array of pointers,
each to a native copy of one filter.
Inheritance
MMKVPMarshaller
Implements
Inherited Members
Namespace: Unity.Steamworks.Interop
Assembly: Unity.Steamworks.Interop.dll
Syntax
public sealed class MMKVPMarshaller : SafeHandleZeroOrMinusOneIsInvalid, IDisposable
Constructors
MMKVPMarshaller(MatchMakingKeyValuePair_t[])
Copies the filters into unmanaged memory as the pointer array Steam expects.
Declaration
public MMKVPMarshaller(MatchMakingKeyValuePair_t[] filters)
Parameters
| Type | Name | Description |
|---|---|---|
| MatchMakingKeyValuePair_t[] | filters | The filters to copy. When null or empty, a null pointer is passed. |
Methods
ReleaseHandle()
Frees the pointer array and the filter block behind it.
Declaration
protected override bool ReleaseHandle()
Returns
| Type | Description |
|---|---|
| bool |
Overrides
Operators
implicit operator IntPtr(MMKVPMarshaller)
The raw MatchMakingKeyValuePair_t ** the flat API takes.
Declaration
public static implicit operator IntPtr(MMKVPMarshaller that)
Parameters
| Type | Name | Description |
|---|---|---|
| MMKVPMarshaller | that | The marshaller to convert; may be null. |
Returns
| Type | Description |
|---|---|
| IntPtr | The pointer array, or Zero when |