Method FromRaw
FromRaw(void*)
Creates a FunctionPointer from a raw pointer.
Declaration
public static FunctionPointer FromRaw(void* raw)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | raw | The raw pointer specifying the target function that the resulting FunctionPointer will point to. |
Returns
| Type | Description |
|---|---|
| FunctionPointer | A FunctionPointer that points to the same target function as the specified |
Implements
Remarks
The raw pointer must not be null. If it is, an ArgumentNullException will be thrown.
The resulting FunctionPointer will point to the same target function as raw.
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|