18 #ifndef MEMORY_MANAGER_H 19 #define MEMORY_MANAGER_H 158 void *buffer,
unsigned int length) Q_DECL_EXPORT;
171 const void *buffer,
unsigned int length) Q_DECL_EXPORT;
267 void dump(
const char *
function);
QHash< Kwave::Handle, Kwave::SwapFile * > m_unmapped_swap
void setVirtualLimit(quint64 mb) Q_DECL_EXPORT
quint64 totalPhysical() Q_DECL_EXPORT
int readFrom(Kwave::Handle handle, unsigned int offset, void *buffer, unsigned int length) Q_DECL_EXPORT
bool convertToVirtual(Kwave::Handle handle, size_t new_size)
bool resize(Kwave::Handle handle, size_t size) Q_DECL_EXPORT
size_t sizeOf(Kwave::Handle handle) Q_DECL_EXPORT
static MemoryManager & instance() Q_DECL_EXPORT
Kwave::Handle newHandle()
bool convertToPhysical(Kwave::Handle handle, size_t new_size)
bool freePhysical(size_t size)
QHash< Kwave::Handle, Kwave::SwapFile * > m_mapped_swap
void setUndoLimit(quint64 mb) Q_DECL_EXPORT
void tryToMakePhysical(Kwave::Handle handle)
void free(Kwave::Handle &handle) Q_DECL_EXPORT
void unmapFromCache(Kwave::Handle handle)
void setSwapDirectory(const QString &dir) Q_DECL_EXPORT
QHash< Kwave::Handle, Kwave::SwapFile * > m_cached_swap
struct Kwave::MemoryManager::physical_memory_t physical_memory_t
void setPhysicalLimit(quint64 mb) Q_DECL_EXPORT
QString nextSwapFileName(Kwave::Handle handle)
Kwave::Handle allocatePhysical(size_t size)
quint64 undoLimit() const Q_DECL_EXPORT
static Kwave::Handle m_last_handle
void unmap(Kwave::Handle handle) Q_DECL_EXPORT
Kwave::Handle allocateVirtual(size_t size)
void * map(Kwave::Handle handle) Q_DECL_EXPORT
int writeTo(Kwave::Handle handle, unsigned int offset, const void *buffer, unsigned int length) Q_DECL_EXPORT
Kwave::Handle allocate(size_t size) Q_DECL_EXPORT
Kwave::LRU_Cache< Kwave::Handle, physical_memory_t > m_physical
void dump(const char *function)