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