Method InitializeTargets
InitializeTargets(ReadOnlySpan<T>)
Initializes the sequence of target values the current pointer is pointing to with the specified values.
Declaration
public PersistentSequencePointer<T> InitializeTargets(ReadOnlySpan<T> values)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<T> | values | The values to initialize at the target locations. |
Returns
| Type | Description |
|---|---|
| PersistentSequencePointer<T> | A new PersistentSequencePointer<T> pointing to the same target as the current pointer, representing the initialized sequence. |
Remarks
There are no bounds checks performed regarding the length of the values parameter.
It is the caller's responsibility to ensure that the specified range is valid and does not exceed the bounds of the sequence the pointer is pointing to.
The sequence the current pointer is pointing to and the sequence referenced by the values parameter can overlap without any issues.