Click or drag to resize
SoCpuBufferObjectCreateInstanceT Method (SbNativeArrayT)
Factory method to create an instance of SoCpuBufferObject from an arbitrary SbNativeArrayT.

Namespace: OIV.Inventor.Devices
Assembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public static SoCpuBufferObject CreateInstance<T>(
	SbNativeArray<T> buffer
)
where T : struct, new()

Parameters

buffer
Type: OIV.Inventor.GenericSbNativeArrayT
buffer that would be shared by the SoCpuBufferObject instance.

Type Parameters

T
A value type.

Return Value

Type: SoCpuBufferObject
Exceptions
ExceptionCondition
ArgumentNullException Thrown when the specified buffer is .
Remarks

This method is provided to address the lack of generic constructor in .NET framework.

The data owned by buffer is not duplicated. The SoCpuBufferObject created instance share the same buffer.

See Also