NativeArraySlice<T> Constructor

Definition

Namespace: Extreme.Collections
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

NativeArraySlice<T>(IntPtr) Constructs a new array stride with zero offset and unit stride.
NativeArraySlice<T>(IntPtr, Int32) Constructs a new array slice with unit stride.
NativeArraySlice<T>(IntPtr, Int32, Int32) Constructs a new array.

NativeArraySlice<T>(IntPtr)

Constructs a new array stride with zero offset and unit stride.
C#
public NativeArraySlice(
	IntPtr values
)

Parameters

values  IntPtr
The storage array.

NativeArraySlice<T>(IntPtr, Int32)

Constructs a new array slice with unit stride.
C#
public NativeArraySlice(
	IntPtr values,
	int offset
)

Parameters

values  IntPtr
The storage array.
offset  Int32
The offset of the first element in the storage array.

Remarks

The values array is re-used. Modifying elements in the array slice will modify the elements in the original array. Conversely, if elements in the original array that correspond to elements in the array slice are modified, the elements of the array slice are modified as well.

NativeArraySlice<T>(IntPtr, Int32, Int32)

Constructs a new array.
C#
public NativeArraySlice(
	IntPtr values,
	int offset,
	int stride
)

Parameters

values  IntPtr
The storage array.
offset  Int32
The offset of the first element in the storage array.
stride  Int32
The step between elements in the storage array.

Remarks

The values array is re-used. Modifying elements in the array slice will modify the elements in the original array. Conversely, if elements in the original array that correspond to elements in the array slice are modified, the elements of the array slice are modified as well.

See Also