Baigudin Software avatar
EOOS Systems logo
home
ru region
en region

Interface «eoos::api::Heap»

Heap memory interface.

public: virtual ~Heap();

Destructor.

public: virtual void* allocate(size_t size, void* ptr);

Allocates memory.

Parameters:
size — Required memory size in byte.
ptr — NULLPTR value becomes to allocate memory, and other given values are simply returned as memory address.

Returns:
Pointer to allocated memory or NULLPTR.

public: virtual void free(void* ptr);

Frees allocated memory.

Parameters:
ptr — Pointer to allocated memory.

public: virtual bool_t isConstructed() const;

Tests if this object has been constructed.

Returns:
True if object has been constructed successfully.

Back to class list