Exemplo n.º 1
0
 void InitData(int start, int max)
 {
     for (int i = start; i < max; i += 1)
     {
         var handle = new ContiguousHandle()
         {
             Index = i
         };
         Data[i].Init();
         Data[i].ID  = handle;
         Pointers[i] = handle;
     }
 }
Exemplo n.º 2
0
 public void Init(ContiguousHandle handle, ListStruct <T> pool)
 {
     Handle = handle;
     _pool  = pool;
 }
Exemplo n.º 3
0
 public void Return(ContiguousHandle index)  //5
 {
     #if DEBUG
     ref var obj = ref Data[Pointers[index].Index];