[]
Pins the specified source and call an action with the pinned pointer.
public static void Pin<T>(ref T source, Action<IntPtr> pinAction) where T : struct
Type | Name | Description |
---|---|---|
T | source | The source. |
Action<IntPtr> | pinAction | The pin action to perform on the pinned pointer. |
Name | Description |
---|---|
T | The type of the structure to pin. |
Pins the specified source and call an action with the pinned pointer.
public static void Pin<T>(T[] source, Action<IntPtr> pinAction) where T : struct
Type | Name | Description |
---|---|---|
T[] | source | The source array. |
Action<IntPtr> | pinAction | The pin action to perform on the pinned pointer. |
Name | Description |
---|---|
T | The type of the structure to pin. |