Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Class «util::Allocator»

Memory allocator for utility library.

public: static void* alloc(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