File Reference
#include "squid.h"
#include "tests/STUB.h"
#include "mem/AllocatorProxy.h"
#include "mem/forward.h"
#include "mem/Pool.h"
Include dependency graph for

Go to the source code of this file.


#define STUB_API   "mem/"


void * memAllocString (size_t net_size, size_t *gross_size)
void * memAllocRigid (size_t net_size)
void * memAllocBuf (size_t net_size, size_t *gross_size)
void * memReallocBuf (void *oldbuf, size_t net_size, size_t *gross_size)
void memFree (void *p, int)
 Free a element allocated by memAllocate() More...
void memFreeString (size_t, void *buf)
void memFreeRigid (void *buf, size_t)
void memFreeBuf (size_t, void *buf)
static void cxx_xfree (void *ptr)
FREEmemFreeBufFunc (size_t)
int memInUse (mem_type) STUB_RETVAL(0) void memDataInit(mem_type


int const char size_t
int const char int

Macro Definition Documentation


#define STUB_API   "mem/"

Definition at line 11 of file

Function Documentation

◆ cxx_xfree()

static void cxx_xfree ( void *  ptr)

Definition at line 74 of file

References xfree.

Referenced by memFreeBufFunc().

◆ memAllocBuf()

void * memAllocBuf ( size_t  net_size,
size_t gross_size 

◆ memAllocRigid()

void * memAllocRigid ( size_t  net_size)

Definition at line 45 of file

References xmalloc.

Referenced by PoolingAllocator< Value >::allocate().

◆ memAllocString()

void * memAllocString ( size_t  net_size,
size_t gross_size 

Definition at line 43 of file

References memAllocBuf().

Referenced by String::allocBuffer(), and MemBlob::memAlloc().

◆ memFree()

void memFree ( void *  p,
int  type 

◆ memFreeBuf()

void memFreeBuf ( size_t  size,
void *  buf 

◆ memFreeBufFunc()

FREE * memFreeBufFunc ( size_t  size)

Definition at line 75 of file

References cxx_xfree(), and myFree().

Referenced by MemBuf::freeFunc(), and Rock::IoState::writeToDisk().

◆ memFreeRigid()

void memFreeRigid ( void *  buf,
size_t  net_size 

◆ memFreeString()

void memFreeString ( size_t  size,
void *  buf 

Definition at line 71 of file

References xfree.

Referenced by MemBlob::~MemBlob(), and String::clean().

◆ memInUse()

int memInUse ( mem_type  type)

Definition at line 70 of file

References GetPool(), MemAllocator::inUseCount(), and type.

◆ memReallocBuf()

void * memReallocBuf ( void *  oldbuf,
size_t  net_size,
size_t gross_size 

Variable Documentation

◆ int

int const char int

Definition at line 77 of file

◆ size_t

int const char size_t

Definition at line 77 of file






Web Site Translations