Public Member Functions | Data Fields

HdrStrHeap Class Reference

#include <HdrHeap.h>

Inherits RefCountObj.

Collaboration diagram for HdrStrHeap:
Collaboration graph
[legend]

Public Member Functions

virtual void free ()
char * allocate (int nbytes)
char * expand (char *ptr, int old_size, int new_size)
int space_avail ()
bool contains (const char *str) const

Data Fields

uint32_t m_heap_size
char * m_free_start
uint32_t m_free_size

Detailed Description

Definition at line 158 of file HdrHeap.h.


Member Function Documentation

char * HdrStrHeap::allocate ( int  nbytes  ) 

Definition at line 1150 of file HdrHeap.cc.

References m_free_size, and m_free_start.

bool HdrStrHeap::contains ( const char *  str  )  const [inline]

Definition at line 172 of file HdrHeap.h.

References m_heap_size, and STR_HEAP_HDR_SIZE.

char * HdrStrHeap::expand ( char *  ptr,
int  old_size,
int  new_size 
)

Definition at line 1170 of file HdrHeap.cc.

References ink_assert, m_free_size, m_free_start, m_heap_size, and STR_HEAP_HDR_SIZE.

void HdrStrHeap::free ( void   )  [virtual]

Reimplemented from RefCountObj.

Definition at line 1135 of file HdrHeap.cc.

References ats_free(), HDR_STR_HEAP_DEFAULT_SIZE, m_heap_size, strHeapAllocator, this_thread(), and THREAD_FREE.

int HdrStrHeap::space_avail (  ) 

Field Documentation

Definition at line 170 of file HdrHeap.h.

Referenced by allocate(), and expand().

Definition at line 169 of file HdrHeap.h.

Referenced by allocate(), and expand().

Definition at line 168 of file HdrHeap.h.

Referenced by contains(), expand(), and free().


The documentation for this class was generated from the following files: