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

SliceAllocator Class Reference

Inheritance diagram for SliceAllocator:

HeapSlice IArrayAllocator ReuseAllocator List of all members.

Public Member Functions

 this (int width)
void reset ()
void bind (IReader reader)
bool isMutable (void *x)
void allocate (void[]*x, uint bytes, uint width, uint type, IBuffer.Converter decoder)

Private Member Functions

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

Private Attributes

IReader reader

Member Function Documentation

this int  width  )  [inline]
 

Reimplemented in ReuseAllocator.

Definition at line 210 of file ArrayAllocator.d.

void reset  )  [inline]
 

Reimplemented from IArrayAllocator.

Definition at line 219 of file ArrayAllocator.d.

void bind IReader  reader  )  [inline]
 

Reimplemented from IArrayAllocator.

Definition at line 228 of file ArrayAllocator.d.

bool isMutable void *  x  )  [inline]
 

Reimplemented from IArrayAllocator.

Definition at line 237 of file ArrayAllocator.d.

void allocate void *[]  x,
uint  bytes,
uint  width,
uint  type,
IBuffer.Converter  decoder
[inline]
 

Reimplemented from IArrayAllocator.

Reimplemented in ReuseAllocator.

Definition at line 246 of file ArrayAllocator.d.

References HeapSlice::expand(), HeapSlice::slice(), and type().

this uint  size  )  [inline, inherited]
 

Create with the specified starting size

Definition at line 56 of file HeapSlice.d.

References HeapSlice::buffer.

void* expand uint  size  )  [inline, inherited]
 

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 HeapSlice::buffer, and HeapSlice::used.

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

void [] slice int  size  )  [inline, inherited]
 

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 HeapSlice::buffer, and HeapSlice::used.

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


Member Data Documentation

IReader reader [private]
 

Definition at line 204 of file ArrayAllocator.d.


The documentation for this class was generated from the following file:
Generated on Sat Dec 24 17:28:42 2005 for Mango by  doxygen 1.4.0