Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Class «eoos::lib::Allocator»

Memory allocator.

  • eoos::lib::Allocator

public: static void* allocate(size_t size);

Allocates memory.

Parameters:
size — Number of bytes to allocate.

Returns:
Allocated memory address or a null pointer.

public: static void free(void* ptr);

Frees allocated memory.

Parameters:
ptr — Address of allocated memory block or a null pointer.

Back to class list