libctru/libctru/include/3ds/allocator/mappable.h
2015-11-11 08:57:54 -08:00

25 lines
469 B
C

/**
* @file mappable.h
* @brief Mappable memory allocator.
*/
#pragma once
/**
* @brief Allocates a page-aligned buffer.
* @param size Size of the buffer to allocate.
* @return The allocated buffer.
*/
void* mappableAlloc(size_t size);
/**
* @brief Frees a buffer.
* @param mem Buffer to free.
*/
void mappableFree(void* mem);
/**
* @brief Gets the current mappable free space.
* @return The current mappable free space.
*/
u32 mappableSpaceFree(void);