internal ObjectHolder FindObjectHolder(long objectID)
{
// The index of the bin in which we live is rightmost n bits of the objectID.
int index = (int)(objectID & ArrayMask);
if (index >= _objects.Length)
{
return null;
}
// Find the bin in which we live.
ObjectHolder temp = _objects[index];
// Walk the chain in that bin. Return the ObjectHolder if we find it, otherwise
// return null.
while (temp != null)
{
if (temp._id == objectID)
{
return temp;
}
temp = temp._next;
}
return temp;
}