Пример #1
0
 internal static void EnumBlock(_CrtMemBlockHeader _pFirstBlock, object Obj, TEnumMemoryBlockCallBack CallBack)
 {
     for (_CrtMemBlockHeader Pos = _pFirstBlock;
         Pos != null;
         Pos = Pos.pBlockHeaderNext) {
         if (CallBack(Obj, Pos))
             break;
     }
 }
Пример #2
0
        public TMemNode(pointer data, int size)
            : base(data)
        {
#if DEBUG
            m_Header = new _CrtMemBlockHeader(this, 0, null, null, "", 0, size,
                                              _CrtMemBlockHeader._NORMAL_BLOCK, 0);
#endif
            Previous = null;
            Next     = null;
            Size     = size;
        }
Пример #3
0
 public TMemNode(pointer data, int size)
     : base(data)
 {
     #if DEBUG
     m_Header = new _CrtMemBlockHeader(this, 0, null, null, "", 0, size,
         _CrtMemBlockHeader._NORMAL_BLOCK, 0);
     #endif
     Previous = null;
     Next = null;
     Size = size;
 }
Пример #4
0
 internal static void EnumBlock(_CrtMemBlockHeader _pFirstBlock, object Obj, TEnumMemoryBlockCallBack CallBack)
 {
     for (_CrtMemBlockHeader Pos = _pFirstBlock;
          Pos != null;
          Pos = Pos.pBlockHeaderNext)
     {
         if (CallBack(Obj, Pos))
         {
             break;
         }
     }
 }
Пример #5
0
        public _CrtMemBlockHeader(pointer src, int offset,
			_CrtMemBlockHeader pBlockHeaderNext, _CrtMemBlockHeader pBlockHeaderPrev,
			string szFileName, int nLine, int nDataSize, int nBlockUse, int lRequest)
            : base(src, offset)
        {
            this.pBlockHeaderNext = pBlockHeaderNext;
            this.pBlockHeaderPrev = pBlockHeaderPrev;
            this.szFileName = szFileName;
            this.nLine = nLine;
            this.nDataSize = nDataSize;
            this.nBlockUse = nBlockUse;
            this.lRequest = lRequest;
        }
Пример #6
0
 public _CrtMemBlockHeader(pointer src, int offset,
                           _CrtMemBlockHeader pBlockHeaderNext, _CrtMemBlockHeader pBlockHeaderPrev,
                           string szFileName, int nLine, int nDataSize, int nBlockUse, int lRequest)
     : base(src, offset)
 {
     this.pBlockHeaderNext = pBlockHeaderNext;
     this.pBlockHeaderPrev = pBlockHeaderPrev;
     this.szFileName       = szFileName;
     this.nLine            = nLine;
     this.nDataSize        = nDataSize;
     this.nBlockUse        = nBlockUse;
     this.lRequest         = lRequest;
 }
Пример #7
0
        public MemoryPool(ID mplid, ref T_CMPL pk_cmpl, Nucleus pNucleus)
        {
            TMemNode Block = new TMemNode(pk_cmpl.addr, pk_cmpl.mplsz);

            m_MplID    = mplid;
            m_cmpl     = pk_cmpl;
            m_Nucleus  = pNucleus;
            m_MaxSize  = pk_cmpl.mplsz;
            m_FreeSize = pk_cmpl.mplsz;

            m_FreeMem.AddLast(Block);
#if DEBUG
            m_pFirstBlock = null;
            m_pLastBlock  = null;
            m_nBlockCount = 0;
            m_Dumped      = false;
#endif
        }
Пример #8
0
        public MemoryPool(ID mplid, ref T_CMPL pk_cmpl, Nucleus pNucleus)
        {
            TMemNode Block = new TMemNode(pk_cmpl.addr, pk_cmpl.mplsz);

            m_MplID = mplid;
            m_cmpl = pk_cmpl;
            m_Nucleus = pNucleus;
            m_MaxSize = pk_cmpl.mplsz;
            m_FreeSize = pk_cmpl.mplsz;

            m_FreeMem.AddLast(Block);
            #if DEBUG
            m_pFirstBlock = null;
            m_pLastBlock = null;
            m_nBlockCount = 0;
            m_Dumped = false;
            #endif
        }
Пример #9
0
 private bool EnumBlockCallBack(object Obj, _CrtMemBlockHeader MemBlock)
 {
     throw new NotImplementedException();
 }
Пример #10
0
 internal static void DelBlock(_CrtMemBlockHeader _pFirstBlock, _CrtMemBlockHeader _pLastBlock, pointer blk)
 {
 }
Пример #11
0
 internal static void AddBlock(_CrtMemBlockHeader _pFirstBlock, _CrtMemBlockHeader _pLastBlock, pointer p_blk, int blksz, string lpszFileName, int nLine)
 {
 }
Пример #12
0
 internal static void DelBlock(_CrtMemBlockHeader _pFirstBlock, _CrtMemBlockHeader _pLastBlock, pointer blk)
 {
 }
Пример #13
0
 internal static void AddBlock(_CrtMemBlockHeader _pFirstBlock, _CrtMemBlockHeader _pLastBlock, pointer p_blk, int blksz, string lpszFileName, int nLine)
 {
 }
Пример #14
0
 private bool EnumBlockCallBack(object Obj, _CrtMemBlockHeader MemBlock)
 {
     throw new NotImplementedException();
 }