Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Class «Allocator»

Memory allocator.

  • 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 an allocated memory.

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

Back to class list