Method InitializeTarget
InitializeTarget(in T)
Initializes the target value the current pointer is pointing to with the specified value.
Declaration
public PersistentPointer<T> InitializeTarget(in T value)
Parameters
| Type | Name | Description |
|---|---|---|
| T | value | The value to initialize at the target location. |
Returns
| Type | Description |
|---|---|
| PersistentPointer<T> | A new PersistentPointer<T> pointing to the same target as the current pointer, representing the initialized target. |
InitializeTarget(nint, in T)
Initializes the target value at the specified index in the sequence the current pointer is pointing to with the specified value.
Declaration
public PersistentPointer<T> InitializeTarget(nint index, in T value)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | index | The index of the target value in the sequence. |
| T | value | The value to initialize at the specified index. |
Returns
| Type | Description |
|---|---|
| PersistentPointer<T> | A new PersistentPointer<T> pointing to the same target with the specified |
InitializeTarget(nuint, in T)
Initializes the target value at the specified index in the sequence the current pointer is pointing to with the specified value.
Declaration
public PersistentPointer<T> InitializeTarget(nuint index, in T value)
Parameters
| Type | Name | Description |
|---|---|---|
| nuint | index | The index of the target value in the sequence. |
| T | value | The value to initialize at the specified index. |
Returns
| Type | Description |
|---|---|
| PersistentPointer<T> | A new PersistentPointer<T> pointing to the same target with the specified |