示例#1
0
        private V Scan(Entry <V> n, PackFile pack, long position)
        {
            for (; n != null; n = n.Next)
            {
                Ref <V> r = n.Ref;
                if (r.pack == pack && r.position == position)
                {
                    V v = r.get();
                    if (v != null)
                    {
                        Hit(r);
                        return(v);
                    }
                    n.Kill();
                    break;
                }
            }

            return(null);
        }