Method FromIntPtr
FromIntPtr(nint)
Creates a FunctionPointer<TDelegate> from a memory address given as a nint.
Declaration
public static FunctionPointer<TDelegate> FromIntPtr(nint value)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | value | The memory address to create a FunctionPointer<TDelegate> from. |
Returns
| Type | Description |
|---|---|
| FunctionPointer<TDelegate> | A FunctionPointer<TDelegate> that points to the same memory address as the specified |
Implements
Remarks
The value must not be 0. If it is, an ArgumentNullException will be thrown.
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|