[]
        
(Showing Draft Content)

C1.Util.DX.DXUtil.Pin

Pin Method

Pin<T>(ref T, Action<IntPtr>)

Pins the specified source and call an action with the pinned pointer.

Declaration
public static void Pin<T>(ref T source, Action<IntPtr> pinAction) where T : struct
Parameters
Type Name Description
T source

The source.

Action<IntPtr> pinAction

The pin action to perform on the pinned pointer.

Type Parameters
Name Description
T

The type of the structure to pin.

Pin<T>(T[], Action<IntPtr>)

Pins the specified source and call an action with the pinned pointer.

Declaration
public static void Pin<T>(T[] source, Action<IntPtr> pinAction) where T : struct
Parameters
Type Name Description
T[] source

The source array.

Action<IntPtr> pinAction

The pin action to perform on the pinned pointer.

Type Parameters
Name Description
T

The type of the structure to pin.