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