Return to previous page Return to menu Go to next page

2. Reference

2.1 Function list

 Function 
 Function name 
 number 
 Memory management area definition 
 MEM_Init 
 1 
 Secure array area 
 MEM_Calloc 
 2 
 Release Memory Block 
 MEM_Free 
 3 
 Reserve memory 
 MEM_Malloc 
 4 
 Reallocate memory 
 MEM_Realloc 
 5 


2.2 Function specification

  Title  
Function specifications
  Function  
Memory management area setting
  Function Name  
MEM_Init
No
1

 
format void MEM_Init (Uint32 top_address, Uint32 mem_size) Input top_address: Top address of memory management area : mem_size: Memory management area size (byte specification) Output None Function value None Function Sets the memory management area used by MEM_Calloc, MEM_Malloc, MEM_Realloc, MEM_Free . The area from the start address of the specified memory is the memory management area. Remarks This function is the same in the game before using MEM_Calloc, MEM_Malloc, MEM_Realloc, MEM_Free. Please use only times. If you use it more than once, you can guarantee the contents of the previously reserved memory. Not .

  Title  
Function specifications
  Function  
Secure array area
  Function Name  
MEM_Calloc
No
2

 
format void * MEM_Calloc (Uint32 arg_num, Uint32 arg_size) Input arg_num: Number of array elements Output arg_size: Number of bytes of array element Function value Returns a pointer to the secured memo block when the process ends normally. In case of error Returns NULL. Function Reserves the number of array element bytes for the number of array elements in the memory management area. Secured memory The lock lock is cleared to 0.


Return to previous page Return to menu Go to next page