Struct NDAxisState
Per-call axis-iteration state. The outer-dimension scratch (OuterShapePtr and the
stride pointers) points at buffers the entry method stackallocs — non-pinned stack memory —
so this is a ref struct: it MUST NOT escape the stack frame that
owns those buffers. The ref-struct constraint enforces that at compile time (no boxing, no heap
field, no closure/async capture), the way Span<T> and NDIterRef do —
otherwise the raw pointers (which the compiler does not lifetime-track) could dangle.
public ref struct NDAxisState
- Inherited Members
Fields
Axis
public int Axis
Field Value
AxisLength
public long AxisLength
Field Value
Data0
public nint Data0
Field Value
Data1
public nint Data1
Field Value
DestinationAxisStride
public long DestinationAxisStride
Field Value
DestinationOuterStridesPtr
public long* DestinationOuterStridesPtr
Field Value
- long*
OuterNDim
public int OuterNDim
Field Value
OuterShapePtr
public long* OuterShapePtr
Field Value
- long*
OuterSize
public long OuterSize
Field Value
SourceAxisStride
public long SourceAxisStride
Field Value
SourceOuterStridesPtr
public long* SourceOuterStridesPtr
Field Value
- long*
Methods
GetDestinationOuterStridesPointer()
public long* GetDestinationOuterStridesPointer()
Returns
- long*
GetOuterShapePointer()
public long* GetOuterShapePointer()
Returns
- long*
GetSourceOuterStridesPointer()
public long* GetSourceOuterStridesPointer()
Returns
- long*