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.1.1.Release.7989217834dd2b99155f267b6c8c70f9feacdedd
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