예제 #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;
     }
 }
예제 #2
0
 public void Init(ContiguousHandle handle, ListStruct <T> pool)
 {
     Handle = handle;
     _pool  = pool;
 }
예제 #3
0
 public void Return(ContiguousHandle index)  //5
 {
     #if DEBUG
     ref var obj = ref Data[Pointers[index].Index];