libctru/libctru/include/3ds/allocator/mappable.h

25 lines
469 B
C
Raw Normal View History

/**
* @file mappable.h
* @brief Mappable memory allocator.
*/
2015-10-04 01:33:48 +02:00
#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.
*/
2015-10-04 01:33:48 +02:00
void mappableFree(void* mem);
/**
* @brief Gets the current mappable free space.
* @return The current mappable free space.
*/
u32 mappableSpaceFree(void);