libpromeki 1.0.0-alpha
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
dmaheap.h
Go to the documentation of this file.
1
8#pragma once
9
10
11#include <promeki/config.h>
12#if PROMEKI_ENABLE_CORE
13#include <cstddef>
14#include <promeki/namespace.h>
15#include <promeki/string.h>
16#include <promeki/stringlist.h>
17#include <promeki/error.h>
18#include <promeki/memspace.h>
19
20PROMEKI_NAMESPACE_BEGIN
21
64class DmaHeap {
65 public:
67 static const char *SystemHeapName;
68
77 static bool isSupported();
78
97 static bool isAvailable();
98
110 static bool isHeapAvailable(const String &name);
111
117 static StringList availableHeaps();
118
139 static int allocate(const String &heapName, size_t bytes, Error *err = nullptr);
140
154 static MemSpace forHeap(const String &name);
155
157 static MemSpace systemHeap();
158};
159
160PROMEKI_NAMESPACE_END
161
162#endif // PROMEKI_ENABLE_CORE