CastArray3DTFrom, TTo(ArraySectionTFrom, Int32, Int32, Int32) Constructor

Initializes a new instance of the CastArray3DTFrom, TTo struct from an existing ArraySectionT using the specified depth, height and width.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public CastArray3D(
	ArraySection<TFrom> buffer,
	int depth,
	int height,
	int width
)

Parameters

buffer  ArraySectionTFrom
The desired underlying buffer for the CastArray3DTFrom, TTo instance to be created. It must have sufficient capacity for the specified dimensions.
depth  Int32
The depth of the array to be created.
height  Int32
The height of the array to be created.
width  Int32
The width of the array to be created.

See Also