예제 #1
0
        private Block SearchThroughCompanionBuddies(long requestedCapacity)
        {
            if (Lower != null)
            {
                Block lowerResult = Lower.Allocate(requestedCapacity);

                if (lowerResult != null)
                {
                    return(lowerResult);
                }
            }

            if (Higher != null)
            {
                Block higherResult = Higher.Allocate(requestedCapacity);

                if (higherResult != null)
                {
                    return(higherResult);
                }
            }

            return(null);
        }