Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

HeapSlice Class Reference

Inheritance diagram for HeapSlice:

SliceAllocator ReuseAllocator List of all members.

Public Member Functions

 this (uint size)
void reset ()
void * expand (uint size)
void[] slice (int size)

Private Attributes

uint used
void[] buffer

Member Function Documentation

this uint  size  )  [inline]
 

Create with the specified starting size

Definition at line 56 of file HeapSlice.d.

References buffer.

void reset  )  [inline]
 

Reset content length to zero

Reimplemented in SliceAllocator.

Definition at line 67 of file HeapSlice.d.

References used.

void* expand uint  size  )  [inline]
 

Potentially expand the content space, and return a pointer to the start of the empty section.

Definition at line 79 of file HeapSlice.d.

References buffer, and used.

Referenced by SliceAllocator::allocate(), and Uri::decode().

void [] slice int  size  )  [inline]
 

Return a slice of the content from the current position with the specified size. Adjusts the current position to point at an empty zone.

Definition at line 94 of file HeapSlice.d.

References buffer, and used.

Referenced by SliceAllocator::allocate(), and Uri::decode().


Member Data Documentation

uint used [private]
 

Definition at line 47 of file HeapSlice.d.

Referenced by expand(), reset(), and slice().

void [] buffer [private]
 

Definition at line 48 of file HeapSlice.d.

Referenced by expand(), slice(), and this().


The documentation for this class was generated from the following file:
Generated on Fri May 27 18:12:01 2005 for Mango by  doxygen 1.4.0