|
mf
Media Framework
|
Go to the source code of this file.
Classes | |
| class | mf::raw_allocator |
| Raw allocator, allocates given number of bytes. More... | |
| class | mf::raw_ring_allocator |
| Ring allocator, allocates ring buffer memory. More... | |
| class | mf::raw_null_allocator |
| Null allocator, allocates virtual memory which is not used. More... | |
Namespaces | |
| mf | |
Enumerations | |
| enum | mf::memory_usage_advice { mf::memory_usage_advice::normal, mf::memory_usage_advice::sequential, mf::memory_usage_advice::random } |
Functions | |
| std::size_t | mf::system_page_size () |
| Get page size of operating system, in bytes. More... | |
| template<typename T > | |
| std::size_t | mf::round_up_to_fit_system_page_size (std::size_t n) |
Round n up so that T[n] has a size that is a multiple of the system page size. More... | |
| std::size_t | mf::raw_round_up_to_fit_system_page_size (std::size_t len) |
Round number of bytes len up to a multiple of the system page size. More... | |
| void | mf::set_memory_usage_advice (void *ptr, std::size_t, memory_usage_advice) |
Provide hint to operating system on how memory at ptr will be accessed. More... | |
1.8.6