CastArray3DTFrom, TToItem(Int32) Property
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public CastArray2D<TFrom, TTo> this[
int z
] { get; }
Public ReadOnly Default Property Item (
z As Integer
) As CastArray2D(Of TFrom, TTo)
Get
public:
property CastArray2D<TFrom, TTo> default[int z] {
CastArray2D<TFrom, TTo> get (int z);
}
member Item : CastArray2D<'TFrom, 'TTo> with get
- z Int32
- The depth index of the plane to obtain.
CastArray2DTFrom,
TToA
CastArray2DTFrom, TTo instance that represents a plane of this
CastArray3DTFrom, TTo instance.
If the size of
TTo multiplied by
Width times
Height is not divisible by the size of
TFrom,
then this property throws an
ArgumentException. If the targeted platform supports the
SpanT type and misaligned memory access,
then you can try to use the
AsSpan property and the
MemoryMarshal.Cast method.