Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
None of these functions should be called directly, they will be set up by the generated system and all code should use the platform-agnostic AllocMemory(), AllocMemoryArray() and FreeMemory() instead. More...
#include <exec/types.h>
Go to the source code of this file.
Functions | |
void | InitAmigaAllocator (void) |
Initialise the memory allocator for Amiga OS4. More... | |
void | ExitAmigaAllocator (void) |
Free any resources used by the memory allocator for AmigaOS 4.x. More... | |
void * | AllocateAmigaMemory (uint32 size) |
Allocate a block of memory of the given size on AmigaOS 4.x. More... | |
void * | AllocateAmigaZeroedArray (uint32 num_elements, uint32 size) |
Allocate an array of memory blocks on AmigaOS 4.x. More... | |
void * | ReallocateAmigaMemory (void *old_p, uint32 new_size, uint32 old_size) |
Reallocate a memory block on AmigaOS 4.x. More... | |
void | FreeAmigaMemory (void *mem_p) |
Free some memory created by AllocAmigaMemory() or AllocAmigaMemoryArray() More... | |
None of these functions should be called directly, they will be set up by the generated system and all code should use the platform-agnostic AllocMemory(), AllocMemoryArray() and FreeMemory() instead.
void InitAmigaAllocator | ( | void | ) |
Initialise the memory allocator for Amiga OS4.
void ExitAmigaAllocator | ( | void | ) |
Free any resources used by the memory allocator for AmigaOS 4.x.
void* AllocateAmigaMemory | ( | uint32 | size | ) |
Allocate a block of memory of the given size on AmigaOS 4.x.
size | The size of the required memory block in bytes. |
NULL
upon error. void* AllocateAmigaZeroedArray | ( | uint32 | num_elements, |
uint32 | size | ||
) |
Allocate an array of memory blocks on AmigaOS 4.x.
num_elements | The number of memory blocks to allocate. |
size | The size of each of the required memory block in bytes. |
NULL
upon error. void* ReallocateAmigaMemory | ( | void * | old_p, |
uint32 | new_size, | ||
uint32 | old_size | ||
) |
Reallocate a memory block on AmigaOS 4.x.
The values will be copied from the old block to the new one if required whilst respecting buffer limits.
old_p | The memory block to reallocate. |
new_size | The size of the new memory block. |
old_size | The size of the old memory block. |
NULL
upon error. void FreeAmigaMemory | ( | void * | mem_p | ) |
Free some memory created by AllocAmigaMemory() or AllocAmigaMemoryArray()
mem_p | The memory block to free. |