Method FromUIntPtr
FromUIntPtr(nuint)
Creates a PersistentPointerReadOnly from a memory address given as a nint.
Declaration
public static PersistentPointerReadOnly FromUIntPtr(nuint value)
Parameters
| Type | Name | Description |
|---|---|---|
| nuint | value | The memory address to create a PersistentPointerReadOnly from. |
Returns
| Type | Description |
|---|---|
| PersistentPointerReadOnly | A PersistentPointerReadOnly 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 |
|