SbNativeArrayTToArray Method (Int32, Int32) |
Copy elements in this instance to an array of type element type.
Namespace: OIV.Inventor.GenericAssembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2025.1.0.Release.bbf67b7ce81225a791aa69eb415ebddead35829d
Syntaxpublic T[] ToArray(
int offset,
int count
)
Public Function ToArray (
offset As Integer,
count As Integer
) As T()
public:
array<T>^ ToArray(
int offset,
int count
)
member ToArray :
offset : int *
count : int -> 'T[]
Parameters
- offset
- Type: SystemInt32
The zero-based offset in buffer at which to begin copying the element read from the current stream. - count
- Type: SystemInt32
Number of elements to copy
Return Value
Type:
TAn array of elements of type
T. If this instance is empty, the returned array is empty and has a zero length.
ExceptionsException | Condition |
---|
ArgumentOutOfRangeException | The offset parameter is less than zero.
- or -
The count parameter is less than zero.
|
InvalidOperationException | The stream has been instanciated using a managed array.
Use the GetBuffer method to get a reference on managed array used by the stream. |
ArgumentException | The length of the buffer array minus the offset parameter is less than the count parameter.
|
See Also