Table of Contents

Class ISingleNetworkInEventHandler.EventHandlerMarshaller

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Manages the marshalling of native event handlers for ISingleNetworkInEventHandler.

public class ISingleNetworkInEventHandler.EventHandlerMarshaller : EventHandlerMarshaller<ISingleNetworkInEventHandler>, IEventHandlerMarshaller<ISingleNetworkInEventHandler>
Inheritance
ISingleNetworkInEventHandler.EventHandlerMarshaller
Implements
Inherited Members

Constructors

EventHandlerMarshaller()

public EventHandlerMarshaller()

Properties

Instance

Gets the singleton instance of the ISingleNetworkInEventHandler.EventHandlerMarshaller.

public static ISingleNetworkInEventHandler.EventHandlerMarshaller Instance { get; }

Property Value

ISingleNetworkInEventHandler.EventHandlerMarshaller

Methods

Create(ISingleNetworkInEventHandler)

Creates the unmanaged counterpart of the specified event handler.

protected override (nint, object) Create(ISingleNetworkInEventHandler handler)

Parameters

handler ISingleNetworkInEventHandler

The event handler for which to create the unmanaged counterpart.

Returns

(nint, object)

An unmanaged handle and an object of luggage which will be kept so GC won't clean it up.

Free(nint)

Frees the resources associated with the specified unmanaged handle.

protected override void Free(nint handle)

Parameters

handle nint

The unmanaged handle to free.