IJava |
| Exception | Condition |
|---|---|
| NotSupportedException | The engine is not an HPA edition, or T is not one of the supported primitive types. |
| ArgumentOutOfRangeException | startIndex is negative. |
| InvalidCastException | T is not consistent with the element type of the Java array. |
| NullReferenceException | The Java array is . |
| IndexOutOfRangeException | The elements do not fit in the Java array starting from startIndex. |
Supported only on the HPA Edition. The method is part of the public API on every edition so that code can be written once and adapted at runtime: check IsHPAEdition before calling it and use the ArraySegmentT overload otherwise.
A ReadOnlySpanT cannot be boxed, so it cannot be passed through object-based or dynamic invocations: use this typed overload directly.