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

HeapSlice Class Reference

Inheritance diagram for HeapSlice:

SliceAllocator 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 53 of file HeapSlice.d.

void reset  )  [inline]
 

Reset content length to zero

Reimplemented in SliceAllocator.

Definition at line 64 of file HeapSlice.d.

void* expand uint  size  )  [inline]
 

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

Definition at line 76 of file HeapSlice.d.

Referenced by SliceAllocator::allocate().

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 91 of file HeapSlice.d.

Referenced by SliceAllocator::allocate().


Member Data Documentation

uint used [private]
 

Definition at line 44 of file HeapSlice.d.

void [] buffer [private]
 

Definition at line 45 of file HeapSlice.d.


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:03 2004 for Mango by doxygen 1.3.6