public static void Set <T0, T1>(T0 *to, T1 value, int length = 1) where T0 : unmanaged where T1 : unmanaged { T1 *ptr = (T1 *)to; while (--length > -1) { ptr[length] = value; } }
public Batch(int entityId, T1 *component1, T2 *component2) { EntityId = entityId; Component1 = component1; Component2 = component2; }