Click or drag to resize
SbNativeArrayTToArray Method (Int32, Int32)
Copy elements in this instance to an array of type element type.

Namespace: OIV.Inventor.Generic
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.2.2.Release.778f4cc64de03c89c1282c66aa1f73c0e9a1408b
Syntax
public T[] ToArray(
	int offset,
	int count
)

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: T
An array of elements of type T. If this instance is empty, the returned array is empty and has a zero length.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe offset parameter is less than zero. - or - The count parameter is less than zero.
InvalidOperationExceptionThe stream has been instanciated using a managed array. Use the GetBuffer method to get a reference on managed array used by the stream.
ArgumentExceptionThe length of the buffer array minus the offset parameter is less than the count parameter.
See Also