Chunk_T_.AsSpan128_TTo_().md

July 25, 2024 ยท View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS.Chunk<T>

Chunk.AsSpan128() Method

Return the components as a System.Span<> of type TTo.
The returned System.Span<> contains padding elements on its tail to enable assignment to Vector128{TTo}.
See Example..

public System.Span<TTo> AsSpan128<TTo>()
    where TTo : struct, System.ValueType, System.ValueType;

Type parameters

TTo

Returns

System.Span<TTo>

Contents

  1. 0.1">Friflo.Engine.ECS.">Chunk&#x3C;T>
  2. 1Chunk.AsSpan128() Method