mf
Media Framework
|
Null allocator, allocates virtual memory which is not used. More...
#include <memory.h>
Public Member Functions | |
void * | raw_allocate (std::size_t size, std::size_t align=1) |
void | raw_deallocate (void *ptr, std::size_t size) |
Null allocator, allocates virtual memory which is not used.
Allocates segment of virtual memory which does not store data. Allocated memory may be read and written, but does not need to retain values. Used to allocate buffers that will not be used. OS-specific implementation may map virtual memory pages without allocating physical memory pages, when possible.
void* mf::raw_null_allocator::raw_allocate | ( | std::size_t | size, |
std::size_t | align = 1 |
||
) |
void mf::raw_null_allocator::raw_deallocate | ( | void * | ptr, |
std::size_t | size | ||
) |