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

# OsclMemBasicAllocator Class Reference
[OSCL Memory, OSCL Memory]

`#include <oscl_mem.h>`

Inheritance diagram for OsclMemBasicAllocator:

## Public Methods
OsclAny * | allocate (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_mem.h