Operator explicit operator
explicit operator PointerReadOnly(FunctionPointer)
Converts a FunctionPointer to a PointerReadOnly.
Declaration
public static explicit operator PointerReadOnly(FunctionPointer pointer)
Parameters
| Type | Name | Description |
|---|---|---|
| FunctionPointer | pointer | The FunctionPointer to convert. |
Returns
| Type | Description |
|---|---|
| PointerReadOnly | A PointerReadOnly pointing to the target that's the same target function as the specified FunctionPointer, reinterpreted as data. |
explicit operator NullablePointerReadOnly(FunctionPointer)
Converts a FunctionPointer to a NullablePointerReadOnly.
Declaration
public static explicit operator NullablePointerReadOnly(FunctionPointer pointer)
Parameters
| Type | Name | Description |
|---|---|---|
| FunctionPointer | pointer | The FunctionPointer to convert. |
Returns
| Type | Description |
|---|---|
| NullablePointerReadOnly | A NullablePointerReadOnly pointing to the target that's the same target function as the specified FunctionPointer, reinterpreted as data. |