コード例 #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];