using System.Runtime.CompilerServices; using Svelto.DataStructures; namespace Svelto.ECS.Internal { public struct NativeEntityIDs: IEntityIDs { internal NativeEntityIDs(NB> native) { _native = native; } public void Update(in NB> unsafeKeys) { _native = unsafeKeys; } public uint this[uint index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => _native[index].key; } public uint this[int index] { [MethodImpl(MethodImplOptions.AggressiveInlining)] get => _native[index].key; } NBInternal> _native; } }