mf
Media Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
mf::raw_null_allocator Class Reference

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)
 

Detailed Description

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.

Member Function Documentation

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 
)

The documentation for this class was generated from the following file: