Пример #1
0
 public Ptr this[ulong hash]
 {
     get
     {
         uint index = HashUtils.Fnv32((int)hash) % (uint)x08_Limit;
         var  pair  = x00_Ptr_Buckets[(int)index].Dereference();
         while (pair != null)
         {
             if (pair.x08_Hash == hash)
             {
                 return(pair.x10_PtrComponent);
             }
             pair = pair.x00_Ptr_Next.Dereference();
         }
         throw new KeyNotFoundException();
     }
 }