Ejemplo n.º 1
0
        //==============================================================================
        // deleteMem
        //==============================================================================
        public void deleteMem(uint pBlock)
        {
            LineAlloc la = getLineContaining(pBlock);

            mBlockToLineNum.Remove(pBlock);

            if (la != null)
            {
                mTotalBytes -= la.getBlockSize(pBlock);
                la.deleteMem(pBlock);

                if (la.getTotalAllocatedBytes() == 0)
                {
                    mAllocations.Remove(la);
                }
                return;
            }

            GlobalErrors.addError("FileAlloc : Stray Delete of block 0x" + pBlock.ToString("x"));
        }
Ejemplo n.º 2
0
 public LineAllocNode(LineAlloc ownerAlloc)
 {
     mpOwnerAlloc = ownerAlloc;
     this.Text    = MemoryNumber.convert(mpOwnerAlloc.getTotalAllocatedBytes()) + " from " + mpOwnerAlloc.getTotalNumAllocations() + " allocations at Line " + mpOwnerAlloc.getLinenum();
 }