Children<TNode>.UnsafeSlice Method
Overloads
| Name | Description |
|---|---|
UnsafeSlice(Int32, Int32) |
Returns a ReadOnlySpan<T> of a range of nodes in the source Children<TNode>. Nodes should not be added or removed from the Children<TNode> while the ReadOnlySpan<T> is in use. |
UnsafeSlice(Range) |
Returns a ReadOnlySpan<T> of a range of nodes in the source Children<TNode>. Nodes should not be added or removed from the Children<TNode> while the ReadOnlySpan<T> is in use. |
UnsafeSlice(Int32, Int32)
Returns a ReadOnlySpan<T> of a range of nodes in the source Children<TNode>. Nodes should not be added or removed from the Children<TNode> while the ReadOnlySpan<T> is in use.
public ReadOnlySpan<TNode> UnsafeSlice(int index, int count);
Parameters
| Name | Type | Description |
|---|---|---|
index |
Int32 |
The zero-based index at which the range starts. |
count |
Int32 |
The number of nodes in the range. |
Returns
A ReadOnlySpan<T> of a range of nodes in the source Children<TNode>.
UnsafeSlice(Range)
Returns a ReadOnlySpan<T> of a range of nodes in the source Children<TNode>. Nodes should not be added or removed from the Children<TNode> while the ReadOnlySpan<T> is in use.
public ReadOnlySpan<TNode> UnsafeSlice(Range range);
Parameters
| Name | Type | Description |
|---|---|---|
range |
Range |
The Range. |
Returns
A ReadOnlySpan<T> of a range of nodes in the source Children<TNode>.