wut  v1.7.0
Wii U Toolchain
Typedefs | Enumerations | Functions
memory.h File Reference
#include <wut.h>
Include dependency graph for memory.h:

Go to the source code of this file.

Typedefs

typedef enum OSMemoryType OSMemoryType
 
typedef enum OSSharedDataType OSSharedDataType
 

Enumerations

enum  OSMemoryType {
  OS_MEM1 = 1 ,
  OS_MEM2 = 2
}
 
enum  OSSharedDataType {
  OS_SHAREDDATATYPE_FONT_CHINESE = 0 ,
  OS_SHAREDDATATYPE_FONT_KOREAN = 1 ,
  OS_SHAREDDATATYPE_FONT_STANDARD = 2 ,
  OS_SHAREDDATATYPE_FONT_TAIWANESE = 3 ,
  OS_SHAREDDATATYPE_FONT_MAX = 4
}
 

Functions

BOOL OSGetSharedData (OSSharedDataType type, uint32_t unk_r4, void **outPtr, uint32_t *outSize)
 
void __OSRootLoadShared ()
 
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...
 
void __OSZeroProcessMemory (uint32_t proccesID)
 Zeros the memory for a given proccessID. More...