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