private int PopFreeSpaceOffStack()
        {
            int nextAvailableBlock = GetNextFreeSpaceIndex();
            //pop arrayIndex off stack
            int newNextFreeSpace = _simpleCollectionNextSpace.Get(nextAvailableBlock).ToInt();

            PutNextFreeSpaceIndex(newNextFreeSpace);
            _simpleCollectionNextSpace.WipeElement(nextAvailableBlock);
            WriteOutHeader();
            return(nextAvailableBlock);
        }
Exemple #2
0
 public void WipeElement(int index)
 {
     _cache.AddToCache(new Element(new byte[_simpleCollectionNextSpace.GetElementSize()]), index);
     _simpleCollectionNextSpace.WipeElement(index);
 }