wut
1.0.0-alpha
Wii U Toolchain
|
Typedefs | |
typedef enum OSMemoryType | OSMemoryType |
Enumerations | |
enum | OSMemoryType { OS_MEM1 = 1, OS_MEM2 = 2 } |
Functions | |
void * | OSBlockMove (void *dst, const void *src, uint32_t size, BOOL flush) |
Moves chunks of memory around, similarly to memmove. More... | |
void * | OSBlockSet (void *dst, uint8_t val, uint32_t size) |
Fills a chunk of memory with the given value, like memset. More... | |
void * | OSAllocFromSystem (uint32_t size, int align) |
void | OSFreeToSystem (void *ptr) |
BOOL | OSGetForegroundBucket (uint32_t *outAddr, uint32_t *outSize) |
Gets the location and size of the foreground bucket memory area. More... | |
BOOL | OSGetForegroundBucketFreeArea (uint32_t *outAddr, uint32_t *outSize) |
Gets the location and size of the application-usable portion of the foreground bucket area. More... | |
int | OSGetMemBound (OSMemoryType type, uint32_t *outAddr, uint32_t *outSize) |
Gets the location and size of available memory areas. More... | |
typedef enum OSMemoryType OSMemoryType |
enum OSMemoryType |
void* OSBlockMove | ( | void * | dst, |
const void * | src, | ||
uint32_t | size, | ||
BOOL | flush | ||
) |
Moves chunks of memory around, similarly to memmove.
Overlapping source and destination regions are supported.
dst | The destination address for the move. |
src | The source address for the move. |
size | The size of the data to be moved, in bytes. |
flush | Whether to flush the data caches for the source and destination. |
void* OSBlockSet | ( | void * | dst, |
uint8_t | val, | ||
uint32_t | size | ||
) |
Fills a chunk of memory with the given value, like memset.
dst | Pointer to the memory to fill. |
val | Byte value to be set. |
size | Number of bytes to be set to val. |
void* OSAllocFromSystem | ( | uint32_t | size, |
int | align | ||
) |
void OSFreeToSystem | ( | void * | ptr | ) |
BOOL OSGetForegroundBucket | ( | uint32_t * | outAddr, |
uint32_t * | outSize | ||
) |
Gets the location and size of the foreground bucket memory area.
outAddr | Pointer to write the foreground bucket's address to. |
outSize | Pointer to write the foreground bucket's size to. |
true
on success. BOOL OSGetForegroundBucketFreeArea | ( | uint32_t * | outAddr, |
uint32_t * | outSize | ||
) |
Gets the location and size of the application-usable portion of the foreground bucket area.
outAddr | Pointer to write the bucket area's address to. |
outSize | Pointer to write the bucket area's size to. |
true
on success. int OSGetMemBound | ( | OSMemoryType | type, |
uint32_t * | outAddr, | ||
uint32_t * | outSize | ||
) |
Gets the location and size of available memory areas.
type | Type of memory to get information about. See OSMemoryType. |
outAddr | Pointer to write the area's address to. |
outSize | Pointer to write the area's size to. |