37 static void *
operator new(size_t) {
46 static void operator delete(
void *pBlock) {
Movable block of a handle heap, reached through a handle the block points back to.
Definition memhandle.h:21
MemHandle(HandleBlock *pBlock)
Attach the handle to a block with no locks.
void * Resize(int nBytes)
Shrink the block in place through MemRealloc().
void * Lock()
Count a lock and report the data.
HandleBlock * GetBlock() const
Definition memhandle.h:102
void SetBlock(HandleBlock *pBlock)
Definition memhandle.h:107
static MemHandle * Alloc(int nBytes, const char *pszTag)
Allocate a block and a handle for it.
static void Free(MemHandle *pHandle)
Free a handle and its block.
void Unlock()
Undo one Lock().
void * PoolAlloc(int nSize, int nBlockSize, const char *pszTag, int nUnused)
Allocate a block from the small-block pool and bill it to a tag.
void PoolFree(int nSize, void *pBlock)
Return a block to the small-block pool.
The 16-byte header of a block a MemHandle refers to.
Definition memhandle.h:10
int mLockCount
Definition memhandle.h:12
MemHandle * mHandle
Definition memhandle.h:11
int mReserved[2]
Definition memhandle.h:13