| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <T extends PointerBase> T | |
| public static <T extends PointerBase> T | |
| public static void | free(PointerBase ptr)
Frees unmanaged memory that was previously allocated using methods of this class. |
| public static <T extends PointerBase> T | |
| public static <T extends PointerBase> T | |
| public static <T extends PointerBase> T | realloc(T ptr, UnsignedWord size)
Changes the size of the provided unmanaged memory to |
| UnmanagedMemory | back to summary |
|---|---|
| private UnmanagedMemory() | |
| calloc | back to summary |
|---|---|
| public static <T extends PointerBase> T calloc(UnsignedWord size) Allocates
This method never returns a null pointer, but instead throws an
| |
| calloc | back to summary |
|---|---|
| public static <T extends PointerBase> T calloc(int size) Allocates
This method never returns a null pointer, but instead throws an
| |
| free | back to summary |
|---|---|
| public static void free(PointerBase ptr) Frees unmanaged memory that was previously allocated using methods of this class. This method
is a no-op if the given pointer is
| |
| malloc | back to summary |
|---|---|
| public static <T extends PointerBase> T malloc(UnsignedWord size) Allocates
This method never returns a null pointer, but instead throws an
| |
| malloc | back to summary |
|---|---|
| public static <T extends PointerBase> T malloc(int size) Allocates
This method never returns a null pointer, but instead throws an
| |
| realloc | back to summary |
|---|---|
| public static <T extends PointerBase> T realloc(T ptr, UnsignedWord size) Changes the size of the provided unmanaged memory to
This method never returns a null pointer, but instead throws an
| |