Vector<T>.Ensure Writable Unchecked Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.8.0
Overload List
| Ensure | Ensures that the element at the specified index in the vector can be written to. |
| Ensure | Ensures that the element at the specified index in the vector can be written to. |
| Ensure | Ensures that the elements at and between the specified indexes in the vector can be written to. |
EnsureWritableUnchecked(Int32)
Ensures that the element at the specified index in the vector can be written to.
Remarks
The index is assumed valid and is not bounds-checked. Invalid
input has unspecified behavior.
Exceptions
| Component | The selected element of the vector is read-only. |
EnsureWritableUnchecked(Range)
Ensures that the element at the specified index in the vector can be written to.
Remarks
The range is assumed valid and is not validated. Invalid input
has unspecified behavior. Mutability, structure, copy-on-write, and
representation invariants remain enforced.
Exceptions
| Component | One or more of the selected elements of the vector is read-only. |
EnsureWritableUnchecked(Int32, Int32)
Ensures that the elements at and between the specified indexes in the vector can be written to.
public void EnsureWritableUnchecked(
int startIndex,
int endIndex
)Parameters
Remarks
The endpoints are assumed valid and are not validated. Invalid
input has unspecified behavior. A writable empty range succeeds without
detaching storage; a read-only empty range remains nonwritable.
Exceptions
| Component | One or more of the selected elements of the vector is read-only. |