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