SbNativeArrayTItem Property |
Namespace: OIV.Inventor.Generic
Exception | Condition |
---|---|
InvalidOperationException | If the native array is not well known. |
IndexOutOfRangeException | If index if out of range. |
NotSupportedException | If stream is closed. - or - If read/write operation are not supported. |
If you iterates thought a significant number of elements using this indexer, you may encounter performance issue if the underlying buffer is not a managed buffer (CanGetBuffer returns false).
For better performances, you can consider using the DataPointer property combined with unsafe code to access/modify the underlying native buffer.