Click or drag to resize
SoCpuBufferObjectCreateInstanceT Method (T)
Factory method to create an instance of SoCpuBufferObject from an arbitrary managed array of value type.

Namespace: OIV.Inventor.Devices
Assembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
[SecurityCriticalAttribute]
public static SoCpuBufferObject CreateInstance<T>(
	T[] buffer
)
where T : struct, new()

Parameters

buffer
Type: T
buffer that would be shared by the SoCpuBufferObject instance.

Type Parameters

T
a value type.

Return Value

Type: SoCpuBufferObject
Exceptions
ExceptionCondition
ArgumentException Thrown when the specified buffer is or empty.
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