Lines Matching refs:m_nBlockSize
181 pFirstBlock->m_nBlockSize = m_nAvailSize;
183 m_AvailHead.m_nBlockSize = m_nAvailSize;
189 size_t gap = pNextBlock->m_nBlockSize - size;
192 m_nAvailSize -= pNextBlock->m_nBlockSize;
195 pNextBlock->m_nBlockSize = size;
197 pNewBlock->m_nBlockSize = gap - sizeof(CFXMEM_Block);
221 if (pNextBlock->m_nBlockSize >= size) {
246 if (pPrevBlock != &m_AvailHead && (FX_LPBYTE)pNextBlock == (FX_LPBYTE)(pPrevBlock + 1) + pPrevBlock->m_nBlockSize) {
248 pPrevBlock->m_nBlockSize += pNextBlock->m_nBlockSize + sizeof(CFXMEM_Block);
257 while ((FX_LPBYTE)pCurBlock == (FX_LPBYTE)(pNextBlock + 1) + pNextBlock->m_nBlockSize) {
259 pNextBlock->m_nBlockSize += pCurBlock->m_nBlockSize + sizeof(CFXMEM_Block);
266 if (pPrevBlock != &m_AvailHead && (FX_LPBYTE)pBlock == (FX_LPBYTE)(pPrevBlock + 1) + pPrevBlock->m_nBlockSize) {
267 size += pPrevBlock->m_nBlockSize + oldSize + sizeof(CFXMEM_Block);
271 size += pNextBlock->m_nBlockSize + sizeof(CFXMEM_Block);
275 m_nAvailSize += pBlock->m_nBlockSize;
280 pCurBlock->m_nBlockSize += pBlock->m_nBlockSize + sizeof(CFXMEM_Block);
285 pCurBlock->m_nBlockSize += pNextBlock->m_nBlockSize + sizeof(CFXMEM_Block);
301 m_nAvailSize += pBlock->m_nBlockSize;
307 if (pPrevBlock != &m_AvailHead && (FX_LPBYTE)pNextBlock == (FX_LPBYTE)(pPrevBlock + 1) + pPrevBlock->m_nBlockSize) {
309 pPrevBlock->m_nBlockSize += pNextBlock->m_nBlockSize + sizeof(CFXMEM_Block);
315 while ((FX_LPBYTE)pNextBlock == (FX_LPBYTE)(pBlock + 1) + pBlock->m_nBlockSize) {
317 pBlock->m_nBlockSize += pNextBlock->m_nBlockSize + sizeof(CFXMEM_Block);
321 if (pPrevBlock != &m_AvailHead && (FX_LPBYTE)pBlock == (FX_LPBYTE)(pPrevBlock + 1) + pPrevBlock->m_nBlockSize) {
323 pPrevBlock->m_nBlockSize += pBlock->m_nBlockSize + sizeof(CFXMEM_Block);
436 return ((CFXMEM_Block*)p - 1)->m_nBlockSize;