Array3DT(ArraySectionT, Int32, Int32, Int32) Constructor
Initializes a new instance of the
Array3DT struct from an existing
ArraySectionT
using the specified
depth,
height and
width.
No heap allocation occurs when using this constructor overload.
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public Array3D(
ArraySection<T> buffer,
int depth,
int height,
int width
)
Public Sub New (
buffer As ArraySection(Of T),
depth As Integer,
height As Integer,
width As Integer
)
public:
Array3D(
ArraySection<T> buffer,
int depth,
int height,
int width
)
new :
buffer : ArraySection<'T> *
depth : int *
height : int *
width : int -> Array3D
Parameters
- buffer ArraySectionT
- The desired underlying buffer for the Array3DT instance to be created.
It must have sufficient capacity for the specified dimensions. Even if buffer owns an array rented from
the ArrayPoolT, calling the Dispose method on the created Array3DT
instance does not return the underlying array to the pool. In such case it is the caller's responsibility to release the buffer.
- 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.