Main Page   Modules   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

OsclMemBasicAllocator Class Reference
[OSCL MemoryOSCL Memory]

#include <oscl_mem.h>

Inheritance diagram for OsclMemBasicAllocator:

Oscl_DefAlloc Oscl_Alloc Oscl_Dealloc

Public Methods

OsclAnyallocate (const uint32 n)
void deallocate (OsclAny *p)

Detailed Description

A simple allocator class that does not use the memory management.

Note: this allocator is for internal use by Oscl only. Higher level code should use OsclMemAllocator.


Member Function Documentation

OsclAny* OsclMemBasicAllocator::allocate const uint32    n [inline, virtual]
 

This API throws an exception when malloc returns NULL. n must be greater than 0.

Returns:
pointer (or Leave with OsclErrNoMemory )

Implements Oscl_DefAlloc.

void OsclMemBasicAllocator::deallocate OsclAny   p [inline, virtual]
 

Implements Oscl_DefAlloc.


The documentation for this class was generated from the following file:
OSCL API
Posting Version: OPENCORE_20090310